mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-04 21:31:11 -05:00
8 lines
223 B
Text
8 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)))));
|
||
|
}
|
||
|
|