Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Assets/Nova/Runtime/Core/Shaders/ParticlesUberUnlit.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,11 @@ Varyings vertUnlit(Attributes input, out float3 positionWS, uniform bool useEmis
output.parallaxMapUVAndProgress.xy = TRANSFORM_PARALLAX_MAP(input.texcoord.xy)
output.parallaxMapUVAndProgress.x += GET_CUSTOM_COORD(_ParallaxMapOffsetXCoord);
output.parallaxMapUVAndProgress.y += GET_CUSTOM_COORD(_ParallaxMapOffsetYCoord);
float parallaxMapProgress = _ParallaxMapProgress + GET_CUSTOM_COORD(_ParallaxMapProgressCoord);
output.parallaxMapUVAndProgress.z = FlipBookProgress(parallaxMapProgress, _ParallaxMapSliceCount);
#ifdef _PARALLAX_MAP_MODE_2D_ARRAY
output.parallaxMapUVAndProgress.z = FlipBookProgress(_ParallaxMapProgress + GET_CUSTOM_COORD(_ParallaxMapProgressCoord), _ParallaxMapSliceCount);
#elif _PARALLAX_MAP_MODE_3D
output.parallaxMapUVAndProgress.z = FlipBookBlendingProgress(_ParallaxMapProgress + GET_CUSTOM_COORD(_ParallaxMapProgressCoord), _ParallaxMapSliceCount);
#endif
#endif

// Transition Map UV
Expand Down