Advertisement
Guest User

from_BFXM.cpp.patch

a guest
Dec 23rd, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement