Skip to content

Commit 4cf1855

Browse files
committed
fixup: fixup
1 parent ddce405 commit 4cf1855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/renderer/glsl_source/cameraEffects_fp.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void main()
4242

4343
color.rgb *= u_LightFactor;
4444

45-
color.rgb = clamp(color.rgb, 0.0, 1.0);
45+
color = clamp(color, 0.0, 1.0);
4646

4747
// apply color grading
4848
vec3 colCoord = color.rgb * 15.0 / 16.0 + 0.5 / 16.0;

0 commit comments

Comments
 (0)