This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

from_BFXM.cpp.patch

By: a guest on Dec 23rd, 2012  |  syntax: C++  |  size: 0.98 KB  |  views: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: objconv/mesher/from_BFXM.cpp
  2. ===================================================================
  3. --- objconv/mesher/from_BFXM.cpp        (revision 13456)
  4. +++ objconv/mesher/from_BFXM.cpp        (working copy)
  5. @@ -304,6 +304,15 @@
  6.                  fprintf( mtl, "Kd %f %f %f\n", dr, dg, db );
  7.                  fprintf( mtl, "Ke %f %f %f\n", er, eg, eb );
  8.                  fprintf( mtl, "Ks %f %f %f\n", sr, sg, sb );
  9. +                if (bsrc == ONE && bdst == ONE)
  10. +                    fprintf( mtl, "Blend 1.0\n" );
  11. +                else if (bsrc == SRCALPHA && bdst == INVSRCALPHA)
  12. +                    fprintf( mtl, "Blend 0.5\n" );
  13. +                if (!usenormals)
  14. +                    fprintf( mtl, "Normals 0\n" );
  15. +                if (reflect)
  16. +                    fprintf( mtl, "Map_Reflection 1\n" );
  17.              } else {
  18.                  fprintf( Outputfile,
  19.                           "<Material power=\"%f\" cullface=\"%d\" reflect=\"%d\" lighting=\"%d\" usenormals=\"%d\">\n",
clone this paste RAW Paste Data