From e64834007dbe6f96eeca2e3f6434493617393868 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sat, 12 Apr 2008 19:14:48 +0000 Subject: [PATCH] Added Multi.material which avoids the use of a texture atlas. --- media/materials/scripts/Multi.material | 72 ++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 media/materials/scripts/Multi.material diff --git a/media/materials/scripts/Multi.material b/media/materials/scripts/Multi.material new file mode 100644 index 00000000..62542798 --- /dev/null +++ b/media/materials/scripts/Multi.material @@ -0,0 +1,72 @@ +material MultiMaterial +{ + technique + { + + pass + { + ambient 0.0 0.0 0.0 + diffuse 0.0 0.0 0.0 + + depth_bias -5 -5 + } + pass + { + vertex_program_ref SingleOneLightVertexProgram + { + param_named_auto world world_matrix + param_named_auto viewProj viewproj_matrix + param_named_auto ambient ambient_light_colour + param_named_auto light0.position light_position 0 + param_named_auto light0.diffuseColour light_diffuse_colour 0 + param_named_auto light0.attenuation light_attenuation 0 + } + + fragment_program_ref SingleFragmentProgram + { + } + + texture_unit + { + texture bricks.jpg + } + + texture_unit + { + texture castle_wall.png + } + + texture_unit + { + texture roof_tiles.png + } + + texture_unit + { + texture grass.png + } + + texture_unit + { + texture water.png + } + + texture_unit + { + texture ground.png + } + + texture_unit + { + texture stained_glass.png + } + + texture_unit + { + texture wall.png + } + + scene_blend add + } + } +}