Skip to content

Commit

Permalink
[Examples] - Fixed shader to handle updated lighting parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tape-Worm committed Sep 3, 2021
1 parent b28be92 commit 94bb1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/Gorgon.Graphics/Primitives/Resources/Shaders.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ float4 blinn(VertexOut vertex, float3 normal, float3 spec)
LightData light = lights[i];

float specularPower = light.LightAttributes.x;
float lightMaxRange = light.LightAttributes.z;
float lightMaxRange = light.LightAttenuation.w;

if ((light.LightAttenuation.x <= 0.0f)
&& (light.LightAttenuation.y <= 0.0f)
Expand Down

0 comments on commit 94bb1b1

Please sign in to comment.