it seems webgl doenst support some kind of loops in the hlsl shader. My shader only have this variant.
I wanna know a workaround this problem if possible and if anyone know in the future if these issues will be solved. Like tis version of WebGL 2.0 coming.
My shader use a loop to iterate through points to print decals , it is a fragment shader.
Error log is ERROR: 0:37: 'while' : This type of loop is not allowed.
I already looked at https://docs.unity3d.com/Manual/webgl-graphics.html
↧