Operating System: Windows 10
Render System: OpenGL
I have implemented fog exactly as described in this post: viewtopic.php?t=83081#p518819
It works for my V2 hlms-pbs meshes, but not for my V1 hlms-unlit billboards. Adding "hlmsUnlit->setListener(mySomeClass);" does not appear to do anything. Switching the billboards to use the same pbs datablock as my meshes causes these runtime errors:
Code: Select all
Shader Compiler:error(high) 0: SHADER_ID_COMPILE error has been generated. GLSL compile failed for shader 4, "": ERROR: 0:238: 'finalColour' : undeclared identifier
ERROR: 0:239: 'mix' : no matching overloaded function found (using implicit conversion)
ERROR: 0:239: 'mix' : function is not known
ERROR: 0:238: 'assign' : cannot convert from 'const highp float' to '3-component vector of highp float'
Code: Select all
outColour.xyz = mix(finalColour, fogColor, fogFactor );