vectorlight ssao macro fix, z=w trick gl side for cloudlayer variants

This commit is contained in:
Azaezel 2018-12-09 19:48:18 -06:00
parent db84f5954e
commit 03690e2169
3 changed files with 3 additions and 1 deletions

View file

@ -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