Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: objconv/mesher/from_BFXM.cpp
- ===================================================================
- --- objconv/mesher/from_BFXM.cpp (revision 13456)
- +++ objconv/mesher/from_BFXM.cpp (working copy)
- @@ -304,6 +304,15 @@
- fprintf( mtl, "Kd %f %f %f\n", dr, dg, db );
- fprintf( mtl, "Ke %f %f %f\n", er, eg, eb );
- fprintf( mtl, "Ks %f %f %f\n", sr, sg, sb );
- + if (bsrc == ONE && bdst == ONE)
- + fprintf( mtl, "Blend 1.0\n" );
- + else if (bsrc == SRCALPHA && bdst == INVSRCALPHA)
- + fprintf( mtl, "Blend 0.5\n" );
- + if (!usenormals)
- + fprintf( mtl, "Normals 0\n" );
- + if (reflect)
- + fprintf( mtl, "Map_Reflection 1\n" );
- } else {
- fprintf( Outputfile,
- "<Material power=\"%f\" cullface=\"%d\" reflect=\"%d\" lighting=\"%d\" usenormals=\"%d\">\n",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement