#version 100
precision mediump float;varying vec4 col;varying vec3 nrm;varying vec2 uv;uniform 
sampler2D tex0;uniform sampler2D tex1;uniform sampler2D tex2;uniform sampler2D tex3;
uniform float chrome;void main(){vec4 msk = texture2D(tex0,uv);vec2 rUV = nrm.xy * 
0.5 + vec2(0.5,0.5);vec4 envcol =	texture2D(tex1,rUV)*msk.r*1.25+texture2D(tex2,rUV)
*msk.g +texture2D(tex3,rUV)*msk.b;envcol = mix(envcol,texture2D(tex1,rUV),chrome);
gl_FragColor = envcol;}
