put the z=w trick back for the cloud layer options. those parallaxing a bit is actually desireable (and fixes it rendering over everything else)

This commit is contained in:
Azaezel 2018-12-04 14:25:49 -06:00
parent 8590f7daf9
commit d86f8b16e8
2 changed files with 2 additions and 1 deletions

View file

@ -46,7 +46,7 @@ ConnectData main( CloudVert IN )
ConnectData OUT;
OUT.hpos = mul(modelview, float4(IN.pos,1.0));
OUT.hpos.z = OUT.hpos.w;
float2 uv = IN.uv0;
uv += texOffset;
uv *= texScale;

View file

@ -63,6 +63,7 @@ ConnectData main( CloudVert IN )
ConnectData OUT;
OUT.hpos = mul(modelview, float4(IN.pos,1.0));
OUT.hpos.z = OUT.hpos.w;
// Offset the uv so we don't have a seam directly over our head.
float2 uv = IN.uv0 + float2( 0.5, 0.5 );