Commits

philiplb committed c6ef44b

Volume Rendering: material and config setup in the volume terrain sample
so that the lowest three lod levels don't use normal mapping

Comments (0)

Files changed (2)

Samples/Media/volumeTerrain/triplanarReference.material

-material triplanarReference
+material triplanarReferenceHigh
 {
-    lod_values 2000.0
     technique TriplanarTexturingHigh
     {
-        lod_index 0
         pass
         {
             vertex_program_ref TriplanarReferenceHigh_VS    
             }
         }
     }
+}
+material triplanarReferenceLow
+{
     technique TriplanarTexturingLow
     {
-        lod_index 1
         pass
         {
             vertex_program_ref TriplanarReferenceLow_VS    
             }
         }
     }
+}
+
+material justWhite 
+{
+	technique
+	{
+		pass
+		{
+			ambient 0.5 0.5 0.5
+			diffuse 1.0 1.0 1.0
+		}
+	}
 }

Samples/Media/volumeTerrain/volumeTerrain.cfg

 skirtFactor = 0.7
 
 # The material of the chunks
-material = triplanarReference
+material = triplanarReferenceHigh
+
+# The material for the lowest 3 levels of the chunktree. This is set after the global material above.
+materialOfLevel0 = triplanarReferenceLow
+materialOfLevel1 = triplanarReferenceLow
+materialOfLevel2 = triplanarReferenceLow