bgfx/3rdparty/glsl-optimizer/tests/fragment/unity-Test_VertexShaderDepthTexture-out.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

7 lines
223 B
Text

uniform vec4 _ZBufferParams;
uniform sampler2D _CameraDepthTexture;
void main ()
{
gl_FragData[0] = vec4((1.0 - (1.0/(((_ZBufferParams.x * texture2D (_CameraDepthTexture, gl_TexCoord[0].xy).x) + _ZBufferParams.y)))));
}