Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

material

By: a guest on May 14th, 2013  |  syntax: None  |  size: 0.61 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. singleton CustomMaterial(chest_mat)
  2. {
  3.         // Map this custom material to the soldier's body
  4.         mapTo = "chest";
  5.        
  6.         // Samplers: diffuse, normal, mask 1 and mask 2.
  7.         sampler["ColorSampler"] = "art/shapes/chest/chestDiff.png";
  8.         sampler["NormalSampler"] = "art/shapes/chest/chestDiff_n.png";
  9.         sampler["Mask1Sampler"] = "art/shapes/chest/mask1.png";
  10.         sampler["Mask2Sampler"] = "art/shapes/chest/mask2.png";
  11.         sampler["GradientMapSampler"] = "art/shapes/chest/gradientMap.png";
  12.        
  13.         // Point to our shader data we defined above
  14.         shader = HeroShader;
  15.        
  16.         // Our minimum shader version requirements
  17.         version = 2.0;
  18. };