Shader fixes for Delta Touch.
This commit is contained in:
parent
c6479cbbc6
commit
db6eced213
5 changed files with 16 additions and 16 deletions
|
|
@ -5,5 +5,5 @@ vec4 ProcessTexel()
|
|||
float mask = texture(masktex,vTexCoord.st).x;
|
||||
vec3 eyedir = normalize(uCameraPos.xyz-pixelpos.xyz);
|
||||
vec3 norm = reflect(eyedir,normalize(vWorldNormal.xyz));
|
||||
return vec4(base.rgb+texture(envtex,norm.xz*0.5+0.5).rgb*mask,base.a);
|
||||
return vec4(base.rgb+texture(envtex,norm.xz*.5+.5).rgb*mask,base.a);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue