mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-16 05:03:47 +00:00
account for attenuation
This commit is contained in:
parent
ed7ace451c
commit
69a2dae3bb
2 changed files with 4 additions and 4 deletions
|
|
@ -246,8 +246,8 @@ LightTargetOutput main( ConvexConnectP IN )
|
|||
LightResult result = GetDirectionalLight(surface, surfaceToLight, lightColor.rgb, lightBrightness, shadowed);
|
||||
|
||||
//output
|
||||
Output.diffuse = float4(result.diffuse, 0);
|
||||
Output.spec = float4(result.spec, 0);
|
||||
Output.diffuse = float4(result.diffuse*atten, 0);
|
||||
Output.spec = float4(result.spec*atten, 0);
|
||||
|
||||
return Output;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -175,8 +175,8 @@ LightTargetOutput main( ConvexConnectP IN )
|
|||
LightResult result = GetDirectionalLight(surface, surfaceToLight, lightColor.rgb, lightBrightness, shadowed);
|
||||
|
||||
//output
|
||||
Output.diffuse = float4(result.diffuse, 0);
|
||||
Output.spec = float4(result.spec, 0);
|
||||
Output.diffuse = float4(result.diffuse*atten, 0);
|
||||
Output.spec = float4(result.spec*atten, 0);
|
||||
|
||||
return Output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue