Jacob Moen avatar Jacob Moen committed b7313ff

Oops - cull_hardware should be in 'pass', not in 'texture_unit' ..

Comments (0)

Files changed (1)

src/AssimpLoader.cpp

 
 		Ogre::String texName = texBasename + "." + texExtention;
 
-		//code += "\tset $diffuse_map " + texName + "\n";
-        code += "\n\t\t\ttexture_unit\n\t\t\t{\n\t\t\t\ttexture " + texName + "\n";
-
 		int twoSided = 0;
 		mat->Get(AI_MATKEY_TWOSIDED, twoSided);
 		if(twoSided != 0)
             code += "\t\t\t\tcull_hardware none\n";
 		}
 
+		//code += "\tset $diffuse_map " + texName + "\n";
+        code += "\n\t\t\ttexture_unit\n\t\t\t{\n\t\t\t\ttexture " + texName + "\n";
+
 		/*
 		int blendFunc = 0;
 		mat->Get(AI_MATKEY_BLEND_FUNC, blendFunc);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.