Shader compiler error with GrayScalePostProcessor example from docs #2357
Answered
by
mattjennings
mattjennings
asked this question in
Q&A
-
It seems the shader fails to compile the example grayscale shader from the docs Replication: https://codesandbox.io/s/excalibur-shader-i0q8u2?file=/src/index.js Error:
I know very little about shaders, but the built-in color blindness post processor does work, so perhaps I'm doing something wrong here with this custom one |
Beta Was this translation helpful? Give feedback.
Answered by
mattjennings
Jun 21, 2022
Replies: 1 comment 2 replies
-
I managed to get it working by comparing to the color blind fragment shader and updating some of the syntax. So I guess the example just needs to be updated! (I have no idea if this is the right way to do it - but it works!)
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
eonarheim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I managed to get it working by comparing to the color blind fragment shader and updating some of the syntax.
So I guess the example just needs to be updated! (I have no idea if this is the right way to do it - but it works!)