When I run a WebGL build of my Unity game on Ubuntu, I get a pink triangle in the middle of each level. This doesn't happen in the editor and it doesn't happen running the same WebGL build on other OSes. Any idea what's going on?

@peterdrake is it the “this is a shader that didn’t compile” shade of pink?

@peterdrake well my next stab in the dark would be to try to turn on shader compilation verbose output, but i have no idea how that would work in unity or webgl

Follow

@bradk I don't know much (and less about shaders). The funny thing is there isn't even a GameObject at that location, so I don't know what is failing to be shaded. Also, this doesn't happen when running the same WebGL build on a different OS.

Error messages in the browser console support your hypothesis, but I don't know what to do about them.

Note: Creation of internal variant of shader 'Hidden/PostProcessing/FinalPass' failed.
q3.framework.js.gz:10:34907
ERROR: 0:2: 'GL_AMD_vertex_shader_layer' : extension is not supported
ERROR: 0:20: 'gl_Layer' : undeclared identifier
ERROR: 0:20: 'assign' : l-value required (can't modify a const)
ERROR: 0:20: 'assign' : cannot convert from 'highp int' to 'const highp float'

q3.framework.js.gz:10:34907
0(285) : error C7532: global function uintBitsToFloat requires " 330" or later
0(285) : error C0000: ... or GL_ARB_shader_bit_encoding : enable
0(285) : error C0000: ... or GL_ARB_gpu_shader5 : enable

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.