-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shader fails on Linux (full build) but not WebGL or Windows (full build) #1308
Comments
Hm, is this maybe a rendertarget issue with inverted y coordinates seeing that the quads are also displaced? |
(unrelated, but your shrug has lost an arm. please escape the first arm) |
Fixed - also it's Rob's shrug, not mine! That's the current Kha version in the output... |
That means it can not read the Git revision - which is not a good sign (but likely unrelated to the rendering problem). |
Since the default shader still works, it's worth pointing out one major difference between my shader and the default shader is I introduce a 2nd texture as a uniform variable. |
Closing this issue in favour of the new one I just created, #1310 |
Describe the bug
A fragment shader which works on WebGL and Windows full build, fails to work on Linux full build.
In both attached sample projects, a quad is drawn with a shader that replaces colours in the original image (paltest.png) with colours from the palette image (paltest_pal.png) by using the Red channel value from the original image as a X position, and the "palette index" as the Y position. So each row of pixels in the texture is a different "palette" that can be applied to the original image.
And then another quad is drawn using a standard shader and image, which works fine on Linux in either case.
To Reproduce
Steps to reproduce the behavior:
Linux shader fail.zip (Uses a modified version of Graphics2)
TextureSample.zip (Simpler example, based off Texture sample project)
Expected behavior
The colours should still show as they do in the F5 WebGL preview, and Windows (full build), and should not change location.
Screenshots
What's interesting is in these screenshots from the "Linux Shader Fail.zip" project, the affected quads seem to have moved down from their proper positions.
Linux shader fail.zip
Correct output when viewed as WebGL or Windows (full build)
Incorrect output when viewed as Linux (full build)
TextureSample.zip
Correct output when viewed as WebGL or Windows (full build)
Incorrect output when viewed as Linux (full build)
Execution Environment:
The text was updated successfully, but these errors were encountered: