From 67dd80e40dbc52d40fd03692e2c09d5ffd60caa9 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 21 Feb 2021 15:37:04 +0100 Subject: [PATCH] Fix shader error when using LOD dither transition --- Content/Editor/MaterialTemplates/Surface.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content/Editor/MaterialTemplates/Surface.shader b/Content/Editor/MaterialTemplates/Surface.shader index 4eee27691..e23518040 100644 --- a/Content/Editor/MaterialTemplates/Surface.shader +++ b/Content/Editor/MaterialTemplates/Surface.shader @@ -581,7 +581,7 @@ VertexOutput VS_Skinned(ModelInput_Skinned input) void ClipLODTransition(PixelInput input) { - float ditherFactor = input.InstanceParams.y; + float ditherFactor = input.Geometry.InstanceParams.y; if (abs(ditherFactor) > 0.001) { float randGrid = cos(dot(floor(input.Position.xy), float2(347.83452793, 3343.28371863)));