materials.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2012 GarageGames, LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to
  6. // deal in the Software without restriction, including without limitation the
  7. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8. // sell copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  20. // IN THE SOFTWARE.
  21. //-----------------------------------------------------------------------------
  22. singleton Material(DECAL_scorch)
  23. {
  24. baseTex[0] = "./scorch_decal.png";
  25. translucent = true;
  26. translucentBlendOp = None;
  27. translucentZWrite = true;
  28. alphaTest = true;
  29. alphaRef = 84;
  30. };
  31. singleton Material(DECAL_RocketEXP)
  32. {
  33. baseTex[0] = "art/decals/rBlast";
  34. vertColor[0] = true;
  35. translucent = true;
  36. translucentBlendOp = LerpAlpha;
  37. translucentZWrite = true;
  38. };
  39. singleton Material(DECAL_bulletHole)
  40. {
  41. baseTex[0] = "art/decals/Bullet Holes/BulletHole_Walls.dds";
  42. vertColor[0] = true;
  43. translucent = true;
  44. translucentBlendOp = LerpAlpha;
  45. translucentZWrite = true;
  46. };
  47. singleton Material(DECAL_defaultblobshadow)
  48. {
  49. baseTex[0] = "art/decals/defaultblobshadow";
  50. translucent = true;
  51. translucentBlendOp = LerpAlpha;
  52. translucentZWrite = true;
  53. alphaTest = false;
  54. //alphaRef = 64;
  55. //emissive[0] = "1";
  56. };