d27174028e
Use two-pass rendering for some shaders to reduce the cost of expensive shaders. Implement some material animations using a shader uniform. Eliminate use of gl_FrontFacing. It's too buggy on ATI/ Macintosh.
18 lines
512 B
XML
18 lines
512 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PropertyList>
|
|
<name>Effects/material-diffuse</name>
|
|
<inherits-from>Effects/model-default</inherits-from>
|
|
<technique n="10">
|
|
<pass>
|
|
<program>
|
|
<vertex-shader>Shaders/default.vert</vertex-shader>
|
|
<fragment-shader>Shaders/default.frag</fragment-shader>
|
|
</program>
|
|
<uniform>
|
|
<name>colorMode</name>
|
|
<type>int</type>
|
|
<value>1</value> <!-- DIFFUSE -->
|
|
</uniform>
|
|
</pass>
|
|
</technique>
|
|
</PropertyList>
|