patch update - fix sunlight shader

Prend en compte les paramètres direction et intensité
This commit is contained in:
2025-01-23 22:45:59 +01:00
parent d8851cc679
commit 425224a96c
4 changed files with 29 additions and 34 deletions

View File

@@ -37,8 +37,6 @@ struct PixelInputType
float4 position : SV_POSITION;
float2 tex : TEXCOORD0;
float3 normal : NORMAL;
float3 lightDir : TEXCOORD1;
float intensity : TEXCOORD2;
};
////////////////////////////////////////////////////////////////////////////////
@@ -65,10 +63,5 @@ PixelInputType SunLightVertexShader(VertexInputType input)
// Normalize the normal vector.
output.normal = normalize(output.normal);
// Use the light direction directly.
output.lightDir = normalize(lightDirection);
output.intensity = intensity;
return output;
}