2023-01-06 22:33:25 +01:00
|
|
|
#define exposureMap texture1
|
|
|
|
|
|
|
|
uniform sampler2D exposureMap;
|
|
|
|
|
2022-09-29 20:34:05 +02:00
|
|
|
#ifdef GL_ES
|
|
|
|
varying mediump vec2 varTexCoord;
|
|
|
|
#else
|
|
|
|
centroid varying vec2 varTexCoord;
|
|
|
|
#endif
|
|
|
|
|
2023-01-06 22:33:25 +01:00
|
|
|
varying float exposure;
|
|
|
|
|
2022-09-29 20:34:05 +02:00
|
|
|
void main(void)
|
|
|
|
{
|
2023-01-06 22:33:25 +01:00
|
|
|
exposure = texture2D(exposureMap, vec2(0.5)).r;
|
|
|
|
|
2022-09-29 20:34:05 +02:00
|
|
|
varTexCoord.st = inTexCoord0.st;
|
|
|
|
gl_Position = inVertexPosition;
|
|
|
|
}
|