2023-07-07 13:56:38 +01:00
|
|
|
#include "/lib/settings.glsl"
|
2023-01-12 15:00:14 -05:00
|
|
|
|
|
|
|
varying vec2 texcoord;
|
2023-10-08 18:02:07 -04:00
|
|
|
|
|
|
|
uniform sampler2D colortex4;
|
|
|
|
|
2023-01-12 15:00:14 -05:00
|
|
|
flat varying vec4 exposure;
|
2023-10-08 17:32:46 -04:00
|
|
|
flat varying vec2 rodExposureDepth;
|
2023-01-12 15:00:14 -05:00
|
|
|
|
|
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
|
|
|
|
gl_Position = ftransform();
|
|
|
|
texcoord = gl_MultiTexCoord0.xy;
|
2023-10-08 17:32:46 -04:00
|
|
|
|
2024-03-19 21:48:29 +00:00
|
|
|
exposure = vec4(vec3(texelFetch2D(colortex4,ivec2(10,37),0).r),texelFetch2D(colortex4,ivec2(10,37),0).r);
|
2023-10-08 17:32:46 -04:00
|
|
|
rodExposureDepth = texelFetch2D(colortex4,ivec2(14,37),0).rg;
|
2023-12-11 16:12:25 -05:00
|
|
|
rodExposureDepth.y = sqrt(rodExposureDepth.y/65000.0);
|
2023-10-08 17:32:46 -04:00
|
|
|
}
|