Three.js: List all built-in GLSL functions in ShaderMaterial Doc

Created on 23 May 2018  路  7Comments  路  Source: mrdoob/three.js

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.

Suggestion

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

All 7 comments

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:

capture

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yqrashawn picture yqrashawn  路  3Comments

Horray picture Horray  路  3Comments

akshaysrin picture akshaysrin  路  3Comments

boyravikumar picture boyravikumar  路  3Comments

scrubs picture scrubs  路  3Comments