Jump to: navigation, search

Effect Framework

192 bytes added, 04:53, 1 September 2019
syntax for xml
To apply an effect to a model or part of a model use:
<syntaxhighlight lang="xml">
where <inherits-from> </inherits-from> contains the path to the effect you want to apply.
Chrome, although now implemented as an effect, still retains the old method of application:
<syntaxhighlight lang="xml">
in order to maintain backward compatibility.
the 'generate' clause is present in the effect file. Exemple :
<syntaxhighlight lang="xml">
<tangent type="int">6</tangent>
<normal type="int">8</normal>
Valid subnodes of 'generate' are 'tangent', 'binormal' or 'normal'.
be bound to an attribute in the program clause, like this :
<syntaxhighlight lang="xml">
attribute names are whatever the shader use. The index is the one

Navigation menu