Fix to narmal map loading.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7921 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
		
							parent
							
								
									0b5cc9fb43
								
							
						
					
					
						commit
						f4d900bc43
					
				| @ -274,7 +274,7 @@ public class MaterialHelper extends AbstractBlenderHelper { | ||||
| 									} | ||||
| 								} | ||||
| 								if ((mapto & 0x02) != 0) {// Nor | ||||
| 									Texture normalMapTexture = textureHelper.convertToNormalMapTexture(texture, ((Number)tex.getFieldValue("norfac")).floatValue()); | ||||
| 									Texture normalMapTexture = textureHelper.convertToNormalMapTexture(texture, ((Number)textureLink.getFieldValue("norfac")).floatValue()); | ||||
| 									result.setTexture(TEXTURE_TYPE_NORMAL, normalMapTexture); | ||||
| 									if (vertexColor) { | ||||
| 										result.setBoolean(shadeless ? "VertexColor" : "UseVertexColor", false); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user