mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-25 17:01:31 +11:00
improve mono mode
This commit is contained in:
parent
5f64d80b7f
commit
a638508dbe
|
@ -109,7 +109,7 @@ mat4 contrastMatrix(float contr)
|
|||
|
||||
vec3 toGrayscale(vec3 color)
|
||||
{
|
||||
float average = (color.r + color.g + color.b) / 3.0;
|
||||
float average = dot(vec3(0.22,0.71,0.07),color);
|
||||
return vec3(average);
|
||||
}
|
||||
|
||||
|
@ -150,4 +150,4 @@ void main()
|
|||
}
|
||||
|
||||
FragColor = vec4(col,1.0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue