Merge pull request #452 from metallic77/slang

improve mono mode
This commit is contained in:
hizzlekizzle 2023-06-18 15:33:09 -05:00 committed by GitHub
commit b9d3443a27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}