Quantcast
Channel: Questions in topic: "hlsl"
Viewing all articles
Browse latest Browse all 206

Webgl 1.0 error shader loop, workaround?

$
0
0
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

Viewing all articles
Browse latest Browse all 206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>