View difference between Paste ID: zczgWiPY and ej9BKX8L
SHOW: | | - or go back to the newest paste.
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-
+                float blend = 0.0f;
9+
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",