mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2025-02-17 07:27:43 +11:00
commit
b9d3443a27
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue