Sun position: fix HDRI mouse wheel exposure setting alpha

This commit is contained in:
Damien Picard 2020-12-04 15:57:44 +01:00
parent 0871d330e9
commit 11640f3a19
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ out vec2 texCoord_interp;
void main()
{
gl_Position = ModelViewProjectionMatrix * vec4(pos.xy, 0.0f, 1.0f);
gl_Position.z = 1.0;
gl_Position.z = 1.0f;
texCoord_interp = texCoord;
}'''
@ -50,7 +50,7 @@ uniform float exposure;
void main()
{
fragColor = texture(image, texCoord_interp) * exposure;
fragColor = texture(image, texCoord_interp) * vec4(exposure, exposure, exposure, 1.0f);
}'''
# shader = gpu.types.GPUShader(vertex_shader, fragment_shader)