1
0
Fork 0

Syntax change for deferred buffers

This commit is contained in:
Frederic Bouvier 2012-04-15 14:54:47 +02:00
parent ae32a82e18
commit 754339b264
6 changed files with 60 additions and 30 deletions

View file

@ -13,19 +13,23 @@
</render-bin> </render-bin>
<texture-unit> <texture-unit>
<unit>0</unit> <unit>0</unit>
<type>depth-buffer</type> <type>buffer</type>
<name>depth</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>1</unit> <unit>1</unit>
<type>normal-buffer</type> <type>buffer</type>
<name>normal</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>2</unit> <unit>2</unit>
<type>diffuse-buffer</type> <type>buffer</type>
<name>diffuse</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>3</unit> <unit>3</unit>
<type>spec-emis-buffer</type> <type>buffer</type>
<name>spec-emis</name>
</texture-unit> </texture-unit>
<program> <program>
<vertex-shader>Shaders/ambient.vert</vertex-shader> <vertex-shader>Shaders/ambient.vert</vertex-shader>

View file

@ -13,23 +13,28 @@
</render-bin> </render-bin>
<texture-unit> <texture-unit>
<unit>0</unit> <unit>0</unit>
<type>depth-buffer</type> <type>buffer</type>
<name>depth</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>1</unit> <unit>1</unit>
<type>normal-buffer</type> <type>buffer</type>
<name>normal</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>2</unit> <unit>2</unit>
<type>diffuse-buffer</type> <type>buffer</type>
<name>diffuse</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>3</unit> <unit>3</unit>
<type>spec-emis-buffer</type> <type>buffer</type>
<name>spec-emis</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>4</unit> <unit>4</unit>
<type>lighting-buffer</type> <type>buffer</type>
<name>lighting</name>
</texture-unit> </texture-unit>
<program> <program>
<vertex-shader>Shaders/display.vert</vertex-shader> <vertex-shader>Shaders/display.vert</vertex-shader>

View file

@ -17,19 +17,23 @@
</render-bin> </render-bin>
<texture-unit> <texture-unit>
<unit>0</unit> <unit>0</unit>
<type>depth-buffer</type> <type>buffer</type>
<name>depth</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>1</unit> <unit>1</unit>
<type>normal-buffer</type> <type>buffer</type>
<name>normal</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>2</unit> <unit>2</unit>
<type>diffuse-buffer</type> <type>buffer</type>
<name>diffuse</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>3</unit> <unit>3</unit>
<type>spec-emis-buffer</type> <type>buffer</type>
<name>spec-emis</name>
</texture-unit> </texture-unit>
<program> <program>
<vertex-shader>Shaders/fog.vert</vertex-shader> <vertex-shader>Shaders/fog.vert</vertex-shader>

View file

@ -19,19 +19,23 @@
</blend> </blend>
<texture-unit> <texture-unit>
<unit>0</unit> <unit>0</unit>
<type>depth-buffer</type> <type>buffer</type>
<name>depth</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>1</unit> <unit>1</unit>
<type>normal-buffer</type> <type>buffer</type>
<name>normal</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>2</unit> <unit>2</unit>
<type>diffuse-buffer</type> <type>buffer</type>
<name>diffuse</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>3</unit> <unit>3</unit>
<type>spec-emis-buffer</type> <type>buffer</type>
<name>spec-emis</name>
</texture-unit> </texture-unit>
<program> <program>
<vertex-shader>Shaders/light-spot.vert</vertex-shader> <vertex-shader>Shaders/light-spot.vert</vertex-shader>

View file

@ -19,19 +19,23 @@
</blend> </blend>
<texture-unit> <texture-unit>
<unit>0</unit> <unit>0</unit>
<type>depth-buffer</type> <type>buffer</type>
<name>depth</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>1</unit> <unit>1</unit>
<type>normal-buffer</type> <type>buffer</type>
<name>normal</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>2</unit> <unit>2</unit>
<type>diffuse-buffer</type> <type>buffer</type>
<name>diffuse</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>3</unit> <unit>3</unit>
<type>spec-emis-buffer</type> <type>buffer</type>
<name>spec-emis</name>
</texture-unit> </texture-unit>
<program> <program>
<vertex-shader>Shaders/light-spot.vert</vertex-shader> <vertex-shader>Shaders/light-spot.vert</vertex-shader>

View file

@ -41,23 +41,28 @@
</render-bin> </render-bin>
<texture-unit> <texture-unit>
<unit>0</unit> <unit>0</unit>
<type>depth-buffer</type> <type>buffer</type>
<name>depth</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>1</unit> <unit>1</unit>
<type>normal-buffer</type> <type>buffer</type>
<name>normal</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>2</unit> <unit>2</unit>
<type>diffuse-buffer</type> <type>buffer</type>
<name>diffuse</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>3</unit> <unit>3</unit>
<type>spec-emis-buffer</type> <type>buffer</type>
<name>spec-emis</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>4</unit> <unit>4</unit>
<type>shadow-buffer</type> <type>buffer</type>
<name>shadow</name>
</texture-unit> </texture-unit>
<program> <program>
<vertex-shader>Shaders/sunlight.vert</vertex-shader> <vertex-shader>Shaders/sunlight.vert</vertex-shader>
@ -298,19 +303,23 @@
</render-bin> </render-bin>
<texture-unit> <texture-unit>
<unit>0</unit> <unit>0</unit>
<type>depth-buffer</type> <type>buffer</type>
<name>depth</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>1</unit> <unit>1</unit>
<type>normal-buffer</type> <type>buffer</type>
<name>normal</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>2</unit> <unit>2</unit>
<type>diffuse-buffer</type> <type>buffer</type>
<name>diffuse</name>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>3</unit> <unit>3</unit>
<type>spec-emis-buffer</type> <type>buffer</type>
<name>spec-emis</name>
</texture-unit> </texture-unit>
<program> <program>
<vertex-shader>Shaders/sunlight.vert</vertex-shader> <vertex-shader>Shaders/sunlight.vert</vertex-shader>