[Orxonox-commit 7511] r12117 - data/branches/Shader_HS18/materials

wiesep at orxonox.net wiesep at orxonox.net
Wed Nov 21 13:23:08 CET 2018


Author: wiesep
Date: 2018-11-21 13:23:08 +0100 (Wed, 21 Nov 2018)
New Revision: 12117

Modified:
   data/branches/Shader_HS18/materials/Cube_Lava_Normal.material
Log:
Fixed flickering

Modified: data/branches/Shader_HS18/materials/Cube_Lava_Normal.material
===================================================================
--- data/branches/Shader_HS18/materials/Cube_Lava_Normal.material	2018-11-21 11:13:54 UTC (rev 12116)
+++ data/branches/Shader_HS18/materials/Cube_Lava_Normal.material	2018-11-21 12:23:08 UTC (rev 12117)
@@ -9,6 +9,8 @@
           // base colours, not needed for rendering, but as information
           // to lighting pass categorisation routine
           diffuse 0 0 0
+          depth_write on
+          depth_bias 0
 
         }
         // Now do the lighting pass
@@ -19,6 +21,8 @@
             // do this for each light
             iteration once_per_light
             scene_blend add
+            depth_write on
+            depth_bias 1
 
             // base colours, not needed for rendering, but as information
             // to lighting pass categorisation routine
@@ -62,11 +66,11 @@
             // Fragment program
             fragment_program_ref BumpMapping/BumpMapFPSpecular
             {
-                param_named_auto lightDiffuse light_diffuse_colour 0 
+                param_named_auto lightDiffuse light_diffuse_colour 0
                 param_named_auto lightSpecular light_specular_colour 0
             }
-            
 
+
             // Base bump map
             texture_unit normalmap
             {
@@ -81,7 +85,9 @@
             // base colours, not needed for rendering, but as information
             // to lighting pass categorisation routine
             lighting off
-            
+            depth_write on
+            depth_bias 2
+
             scene_blend dest_colour zero
             texture_unit decalmap
             {



More information about the Orxonox-commit mailing list