Most appropriate sub-area of p5.js?
p5.js version
2.3.0
Web browser and version
All
Operating system
All
Steps to reproduce this
In strands_glslBackend.js, we do this when converting number literals into shader code:
|
if (node.baseType === BaseType.FLOAT) { |
|
return node.value.toFixed(4); |
This means that if you include 0.00001 in your strands code, your shader code would be 0.0000. That seems like a problem. Is there any way we can do this in a more context-dependent way where we don't just add more decimals across the board for everything?
Most appropriate sub-area of p5.js?
p5.js version
2.3.0
Web browser and version
All
Operating system
All
Steps to reproduce this
In strands_glslBackend.js, we do this when converting number literals into shader code:
p5.js/src/webgl/strands_glslBackend.js
Lines 273 to 274 in a5c9056
This means that if you include
0.00001in your strands code, your shader code would be0.0000. That seems like a problem. Is there any way we can do this in a more context-dependent way where we don't just add more decimals across the board for everything?