Hi,
I think it would be great to add list of all the available built-in GLSL functions in the ShaderMaterial docs.
This can be very useful when creating a custom shader.
This will certainly add more value to the documentation and will avoid confusion while searching functions elsewhere and interpreting it for threejs.
Thanks Team.
here's an easy way to do it: https://github.com/cbaggers/glsl-spec/blob/master/functions.json
How about just link to the WebGL Reference Card?
Last 2 pages cover all of GLSL
https://www.khronos.org/files/webgl/webgl-reference-card-1_0.pdf
Unlike the list above they also tersely document what most of them do
then you want to link to page 4 directly: https://www.khronos.org/files/webgl/webgl-reference-card-1_0.pdf#page=4
Sounds very practical. Reference card are though very minimalist, but would serve the purpose very well.
Yeah, I think referring to the existing WebGL Reference Card makes more sense than creating a new doc page.
Maybe a good place for this resource would be: https://threejs.org/docs/#manual/introduction/Useful-links
Certainly, adding it into Useful link will keep the resources at one place.
But, I would prefer it to see within the same ShaderMaterial Doc.
Something like this:
I think that is somewhat misleading. The section "Built-in attributes and uniforms" refers to program entities provided by three.js. The new section "Built-in functions" would refer to entities provided by GLSL instead. I (and maybe other users) would expect GLSL functions defined by three.js.
Against this backdrop, Useful Links seems more appropriate to me.
Most helpful comment
How about just link to the WebGL Reference Card?
Last 2 pages cover all of GLSL
https://www.khronos.org/files/webgl/webgl-reference-card-1_0.pdf
Unlike the list above they also tersely document what most of them do