Ykkrosh
d295dacb9b
Change lighting model for new maps to allow better overbrightness. Cache player colours instead of loading from scripts every time the renderer wants them. This was SVN commit r9123.
24 lines
794 B
XML
24 lines
794 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<program type="arb">
|
|
|
|
<vertex file="model_common.vp">
|
|
<uniform name="sunDir" loc="0" type="vec3"/>
|
|
<uniform name="sunColor" loc="1" type="vec3"/>
|
|
<uniform name="losTransform" loc="2" type="vec2"/>
|
|
<uniform name="shadowTransform" loc="3" type="mat4"/>
|
|
<stream name="pos"/>
|
|
<stream name="normal"/>
|
|
<stream name="uv0"/>
|
|
</vertex>
|
|
|
|
<fragment file="model_common.fp">
|
|
<uniform name="baseTex" loc="0" type="sampler2D"/>
|
|
<uniform name="shadowTex" loc="1" type="sampler2DShadow"/>
|
|
<uniform name="losTex" loc="2" type="sampler2D"/>
|
|
|
|
<uniform name="objectColor" loc="0" type="vec3"/>
|
|
<uniform name="ambient" loc="1" type="vec3"/>
|
|
</fragment>
|
|
|
|
</program>
|