574
edits
m (→The xml tags of an effect: lowercase for tag names just for consistency) |
(→generate: note about normal generation) |
||
Line 140: | Line 140: | ||
on the CPU and given to the shader as vertex attributes. These | on the CPU and given to the shader as vertex attributes. These | ||
vectors are computed on demand on the geometry using the effect if | vectors are computed on demand on the geometry using the effect if | ||
the 'generate' clause is present in the effect file. | the 'generate' clause is present in the effect file. | ||
Example : | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
Line 153: | Line 155: | ||
The integer value of these subnode is the index of the attribute | The integer value of these subnode is the index of the attribute | ||
that will hold the value of the vec3 vector. | that will hold the value of the vec3 vector. | ||
Normal is really redundant and should not be used, as that is already generated from loading the mesh. | |||
The generate clause is located under PropertyList in the xml file. | The generate clause is located under PropertyList in the xml file. |
edits