Tweak 58090aa6d6 to secure for incorrect includes and usage

This commit is contained in:
Wojtek Figat
2025-02-11 00:33:08 +01:00
parent 4baa38c0cc
commit 21f8dab5de

View File

@@ -279,14 +279,14 @@ float2 Flipbook(float2 uv, float frame, float2 sizeXY, float2 flipXY = 0.0f)
return (uv + frameXY) / sizeXY;
}
#if USE_PER_VIEW_CONSTANTS
// Calculates the world-position offset to stabilize tiling (eg. via triplanar mapping) due to Large Worlds view origin offset.
float3 GetLargeWorldsTileOffset(float tileSize)
{
#if USE_PER_VIEW_CONSTANTS
return LargeWorldsChunkIndex * fmod(LargeWorldsChunkSize, tileSize);
#else
return float3(0, 0, 0);
#endif
}
#endif
#endif