forked from Mirrorlandia_minetest/minetest
6d45c243f8
* Add uniform for frame delta time * Adjust exposure in logarithmic (EV) space * Add network support and LUA API * Add testing mod
20 lines
320 B
GLSL
20 lines
320 B
GLSL
#define exposureMap texture1
|
|
|
|
uniform sampler2D exposureMap;
|
|
|
|
#ifdef GL_ES
|
|
varying mediump vec2 varTexCoord;
|
|
#else
|
|
centroid varying vec2 varTexCoord;
|
|
#endif
|
|
|
|
varying float exposure;
|
|
|
|
void main(void)
|
|
{
|
|
exposure = texture2D(exposureMap, vec2(0.5)).r;
|
|
|
|
varTexCoord.st = inTexCoord0.st;
|
|
gl_Position = inVertexPosition;
|
|
}
|