Skip to content

Commit f5d27fa

Browse files
committed
Add option to gamma correct in plain-color fragment shader.
1 parent 01df4e4 commit f5d27fa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libs/engine/engine/resources/shaders/PlainColor.frag

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ out vec4 out_Color;
66

77
void main(void)
88
{
9-
out_Color = ex_Color;
9+
#if defined(GAMMA_CORRECTION)
10+
out_Color = correctGamma(ex_Color);
11+
#else
12+
out_Color = ex_Color;
13+
#endif // GAMMA_CORRECTION
1014
}

0 commit comments

Comments
 (0)