We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There're a few issues with CUS shader:
This code uses gl_ClipDistance array, but it's not declared in the vertex shader like (as it should): out float gl_ClipDistance[3];
gl_ClipDistance
out float gl_ClipDistance[3];
https://github.com/beyond-all-reason/Beyond-All-Reason/blob/master/modelmaterials_gl4/templates/defaultMaterialTemplate.lua#L512 and https://github.com/beyond-all-reason/Beyond-All-Reason/blob/master/modelmaterials_gl4/templates/defaultMaterialTemplate.lua#L516 deal with gl_ClipDistance[2] and gl_ClipDistance[0] respectively, gl_ClipDistance[1] is dangling.
gl_ClipDistance[2]
gl_ClipDistance[0]
gl_ClipDistance[1]
https://github.com/beyond-all-reason/Beyond-All-Reason/blob/master/modelmaterials_gl4/templates/defaultMaterialTemplate.lua#L115-L116 are unused, which is confusing.
I believe these issues combined make models look like this on Zink (OpenGL over Vulkan driver):
See above
No response
The text was updated successfully, but these errors were encountered:
Beherith
No branches or pull requests
Description
There're a few issues with CUS shader:
This code uses
gl_ClipDistance
array, but it's not declared in the vertex shader like (as it should):out float gl_ClipDistance[3];
https://github.com/beyond-all-reason/Beyond-All-Reason/blob/master/modelmaterials_gl4/templates/defaultMaterialTemplate.lua#L512 and https://github.com/beyond-all-reason/Beyond-All-Reason/blob/master/modelmaterials_gl4/templates/defaultMaterialTemplate.lua#L516 deal with
gl_ClipDistance[2]
andgl_ClipDistance[0]
respectively,gl_ClipDistance[1]
is dangling.https://github.com/beyond-all-reason/Beyond-All-Reason/blob/master/modelmaterials_gl4/templates/defaultMaterialTemplate.lua#L115-L116 are unused, which is confusing.
I believe these issues combined make models look like this on Zink (OpenGL over Vulkan driver):
Expected Behaviour
See above
Actual Behaviour
See above
Reproduction steps
No response
Other
No response
The text was updated successfully, but these errors were encountered: