Can someone help me to update the doc’ with correct informations?
I have in mind to update this page Introduction to Shaders - Babylon.js Documentation, adding after Built In Variables
something like Built In Inputs
, as two tables:
Attribute | Type | Description |
---|---|---|
position | vec3 | pixel: vertex position / fragment: face pixel position |
normal | vec3 | pixel: vertex normal / fragment: face pixel normal |
uv | vec2 | texture coordinate |
Uniform | Type | Description |
---|---|---|
world | mat4 | mesh global transforming state (move + rotate + scale) |
worldView | mat4 | global view part of mesh |
worldViewProjection | mat4 | global camera |
view | mat4 | mesh local view part |
projection | mat4 | local camera |
time | float | per each frame |
direction | ? | ? |
with Type as vec2, float, etc.
So here my question:
- is Introduction to Shaders the right page to put these infos?
- is Built In Inputs the right naming?
- is someone can help me filling this table? please use this pad to ease the process: pad about shader table
[edit] updated using nasimiasl infos