patch update - fix sunlight shader
Prend en compte les paramètres direction et intensité
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user