When setting
renderer.shadowMapEnabled = true
I get several errors in chrome and the canvas does not get rendered.
In Firefox this is no issue.
I tested it with three.js73.
Here is the copy/paste from Chromes’ console:
https://gist.github.com/nylki/672d2f714c4b75b282dc#file-gistfile1-js
This should be solved with #13140 since we unroll all respective loops in the core shader code.
Users can now also trigger the loop unroll mechanism for custom shaders with a new pragma. It’s only necessary that the
for
loop formatting corresponds to a defined standard.