0027232: Configuration - fix mblen missing building issue on Android
[occt.git] / src / Shaders / Display.fs
CommitLineData
189f85a3 1//! Input image.
2uniform sampler2D uInputTexture;
3
1d865689 4//! Ray tracing depth image.
5uniform sampler2D uDepthTexture;
6
189f85a3 7//! Output pixel color.
8out vec4 OutColor;
9
10void main (void)
11{
12 vec4 aColor = texelFetch (uInputTexture, ivec2 (gl_FragCoord.xy), 0);
13
1d865689 14 float aDepth = texelFetch (uDepthTexture, ivec2 (gl_FragCoord.xy), 0).r;
15 gl_FragDepth = aDepth;
16
189f85a3 17 // apply gamma correction (we use gamma = 2)
18 OutColor = vec4 (sqrt (aColor.rgb), aColor.a);
19}