material intro_trunk
{
  technique
  {
    pass
    {
      lighting off
      shading  gouraud

      depth_write on
      depth_check on

      cull_software back
      cull_hardware clockwise

      fog_override false

      ambient  1.00000 1.00000 1.00000 1.00000
      diffuse  0.00000 0.00000 0.00000 1.00000
      specular 0.00000 0.00000 0.00000 1.00000 0.00000

      texture_unit
      {
        texture plant_tree_palm_warm_brown.tga
        tex_coord_set 0

        filtering bilinear
      }

      texture_unit
      {
        texture intro_palm_lm.tga
        tex_coord_set 1

        colour_op_ex  modulate src_current src_texture
      }

      vertex_program_ref vhd/HardwareSkinningFourWeightsFullHANIM
      {
        param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
        param_named_auto viewProjectionMatrix viewproj_matrix
        param_named_auto lightPos light_position 0
        param_named_auto lightDiffuseColour light_diffuse_colour 0
        param_named_auto ambient ambient_light_colour
        param_named diffuse float4 0 0 0 1 
      }
    }
  }


  // fallback technique w/o shaders
  technique
  {
    pass
    {
      lighting on
      shading  gouraud

      depth_write on
      depth_check on

      cull_software back
      cull_hardware clockwise

      fog_override false

      ambient  1.00000 1.00000 1.00000 1.00000
      diffuse  0.00000 0.00000 0.00000 1.00000
      specular 0.00000 0.00000 0.00000 1.00000 0.00000

      texture_unit
      {
        texture intro_plant_tree_palm_warm_brown.tga
        tex_coord_set 0

        filtering bilinear
      }

      texture_unit
      {
        texture intro_palm_lm.tga
        tex_coord_set 1

        colour_op_ex  modulate src_current src_texture
      }
    }
  }
}

material intro_palm
{
  technique
  {
    pass
    {
      alpha_rejection greater_equal 32
      lighting on
      shading  gouraud

      depth_write on
      depth_check on

      cull_software none
      cull_hardware none

      fog_override false

      ambient  1.00000 1.00000 1.00000 1.00000
      diffuse  0.00000 0.00000 0.00000 1.00000
      specular 0.00000 0.00000 0.00000 1.00000 0.00000

      texture_unit
      {
        texture plant_tree_palm_leaf_warm_green.tga
        tex_coord_set 0

        filtering bilinear
      }

      texture_unit
      {
        texture intro_palm_lm.tga
        tex_coord_set 1

        colour_op_ex  modulate src_current src_texture
      }
      vertex_program_ref vhd/HardwareSkinningFourWeightsFullHANIM
      {
        param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
        param_named_auto viewProjectionMatrix viewproj_matrix
        param_named_auto lightPos light_position 0
        param_named_auto lightDiffuseColour light_diffuse_colour 0
        param_named_auto ambient ambient_light_colour
        param_named diffuse float4 0 0 0 1
      }
    }
  }

  // fallback technique w/o shaders
  technique
  {
    pass
    {
      alpha_rejection greater_equal 128
      lighting on
      shading  gouraud

      depth_write on
      depth_check on

      cull_software none
      cull_hardware none

      fog_override false

      ambient  1.00000 1.00000 1.00000 1.00000
      diffuse  0.00000 0.00000 0.00000 1.00000
      specular 0.00000 0.00000 0.00000 1.00000 0.00000

      texture_unit
      {
        texture intro_plant_tree_palm_leaf_warm_green.tga
        tex_coord_set 0

        filtering bilinear
      }

      texture_unit
      {
        texture intro_palm_lm.tga
        tex_coord_set 1

        colour_op_ex  modulate src_current src_texture
      }
    }
  }
}


