mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
vectorlight ssao macro fix, z=w trick gl side for cloudlayer variants
This commit is contained in:
parent
db84f5954e
commit
03690e2169
3 changed files with 3 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ void main()
|
|||
#endif //NO_SHADOW
|
||||
// Sample the AO texture.
|
||||
#ifdef USE_SSAO_MASK
|
||||
surface.ao *= 1.0 - TORQUE_TEX2D( ssaoMask, viewportCoordToRenderTarget( uv0.xy, rtParams3 ) ).r;
|
||||
surface.ao *= 1.0 - texture( ssaoMask, viewportCoordToRenderTarget( uv0.xy, rtParams3 ) ).r;
|
||||
#endif
|
||||
|
||||
//get directional light contribution
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue