skybox shader - only apply brightness to the color channels

This commit is contained in:
miku-666
2024-03-01 15:26:38 +01:00
parent 12f53c5ff2
commit 96c5817a6b
2 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -9,5 +9,5 @@ in vec3 texCoords;
void main()
{
color = texture(skybox, texCoords) * vec4(vec3(clamp(brightness, 0.0, 1.0)), 1.0);
color = vec4(texture(skybox, texCoords).rgb * clamp(brightness, 0.0, 1.0), 1.0);
}