mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
simplification
This commit is contained in:
parent
fcef7061c8
commit
a2bd0e0fcd
1 changed files with 1 additions and 3 deletions
|
|
@ -234,14 +234,12 @@ float4 main(FarFrustumQuadConnectP IN) : SV_TARGET
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif //NO_SHADOW
|
#endif //NO_SHADOW
|
||||||
float ao = 1;
|
|
||||||
// Sample the AO texture.
|
// Sample the AO texture.
|
||||||
#ifdef USE_SSAO_MASK
|
#ifdef USE_SSAO_MASK
|
||||||
ao = 1.0 - TORQUE_TEX2D( ssaoMask, viewportCoordToRenderTarget( IN.uv0.xy, rtParams3 ) ).r;
|
surface.ao *= 1.0 - TORQUE_TEX2D( ssaoMask, viewportCoordToRenderTarget( IN.uv0.xy, rtParams3 ) ).r;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//get directional light contribution
|
//get directional light contribution
|
||||||
surface.ao *= ao;
|
|
||||||
float3 lighting = getDirectionalLight(surface, surfaceToLight, lightingColor.rgb, lightBrightness, shadow);
|
float3 lighting = getDirectionalLight(surface, surfaceToLight, lightingColor.rgb, lightBrightness, shadow);
|
||||||
|
|
||||||
return float4(lighting, 0);
|
return float4(lighting, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue