Browse Source

Removed redundant sort statements from the renderpaths. Sort by state & front-to-back is default.

Lasse Öörni 13 years ago
parent
commit
15f4067249

+ 2 - 2
Bin/CoreData/RenderPaths/Deferred.xml

@@ -3,7 +3,7 @@
     <rendertarget name="normal" format="rgba" />
     <rendertarget name="normal" format="rgba" />
     <rendertarget name="depth" format="lineardepth" />
     <rendertarget name="depth" format="lineardepth" />
     <command type="clear" color="fog" depth="1.0" stencil="0" />
     <command type="clear" color="fog" depth="1.0" stencil="0" />
-    <command type="scenepass" pass="deferred" marktostencil="true" vertexlights="true" sort="fronttoback">
+    <command type="scenepass" pass="deferred" marktostencil="true" vertexlights="true">
         <output index="0" name="viewport" />
         <output index="0" name="viewport" />
         <output index="1" name="albedo" />
         <output index="1" name="albedo" />
         <output index="2" name="normal" />
         <output index="2" name="normal" />
@@ -14,7 +14,7 @@
         <texture unit="normal" name="normal" />
         <texture unit="normal" name="normal" />
         <texture unit="depth" name="depth" />
         <texture unit="depth" name="depth" />
     </command>
     </command>
-    <command type="scenepass" pass="prealpha" sort="fronttoback" />
+    <command type="scenepass" pass="prealpha" />
     <command type="scenepass" pass="alpha" usescissor="true" vertexlights="true" sort="backtofront" />
     <command type="scenepass" pass="alpha" usescissor="true" vertexlights="true" sort="backtofront" />
     <command type="scenepass" pass="postalpha" sort="backtofront" />
     <command type="scenepass" pass="postalpha" sort="backtofront" />
 </renderpath>
 </renderpath>

+ 1 - 1
Bin/CoreData/RenderPaths/Forward.xml

@@ -1,6 +1,6 @@
 <renderpath>
 <renderpath>
     <command type="clear" color="fog" depth="1.0" stencil="0" />
     <command type="clear" color="fog" depth="1.0" stencil="0" />
-    <command type="scenepass" pass="base" vertexlights="true" sort="state" />
+    <command type="scenepass" pass="base" vertexlights="true" />
     <command type="forwardlights" />
     <command type="forwardlights" />
     <command type="scenepass" pass="prealpha" sort="state" />
     <command type="scenepass" pass="prealpha" sort="state" />
     <command type="scenepass" pass="alpha" usescissor="true" vertexlights="true" sort="backtofront" />
     <command type="scenepass" pass="alpha" usescissor="true" vertexlights="true" sort="backtofront" />

+ 3 - 3
Bin/CoreData/RenderPaths/Prepass.xml

@@ -3,7 +3,7 @@
     <rendertarget name="normal" format="rgba" />
     <rendertarget name="normal" format="rgba" />
     <rendertarget name="depth" format="lineardepth" />
     <rendertarget name="depth" format="lineardepth" />
     <command type="clear" color="fog" depth="1.0" stencil="0" />
     <command type="clear" color="fog" depth="1.0" stencil="0" />
-    <command type="scenepass" pass="prepass" marktostencil="true" sort="fronttoback">
+    <command type="scenepass" pass="prepass" marktostencil="true">
         <output index="0" name="normal" />
         <output index="0" name="normal" />
         <output index="1" name="depth" />
         <output index="1" name="depth" />
     </command>
     </command>
@@ -12,10 +12,10 @@
         <texture unit="normal" name="normal" />
         <texture unit="normal" name="normal" />
         <texture unit="depth" name="depth" />
         <texture unit="depth" name="depth" />
     </command>
     </command>
-    <command type="scenepass" pass="material" vertexlights="true" sort="fronttoback">
+    <command type="scenepass" pass="material" vertexlights="true">
         <texture unit="light" name="light" />
         <texture unit="light" name="light" />
     </command>
     </command>
-    <command type="scenepass" pass="prealpha" sort="fronttoback" />
+    <command type="scenepass" pass="prealpha"/>
     <command type="scenepass" pass="alpha" usescissor="true" vertexlights="true" sort="backtofront" />
     <command type="scenepass" pass="alpha" usescissor="true" vertexlights="true" sort="backtofront" />
     <command type="scenepass" pass="postalpha" sort="backtofront" />
     <command type="scenepass" pass="postalpha" sort="backtofront" />
 </renderpath>
 </renderpath>