- Major update to the viewer. A little bit buggy now, but I'll fix that
- 2/3 of the viewer code are no wrapped in helper classes - ByteSwap.h header added - Bugfix in the 3DS loader: Texture blend mode was read incorrectly - Bugfix in the X-Loader. Assets with specular_exp == 0 use gouraud lighting now - Added new helper functions to MaterialHelper - Added aiMaterialGetTexture() function to allow easy access to all properties of a texture git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@16 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -1213,7 +1213,7 @@ void Dot3DSImporter::ParseTextureChunk(int* piRemaining,Dot3DS::Texture* pcOut)
|
||||
break;
|
||||
// manually parse the blend factor
|
||||
case Dot3DSFile::CHUNK_PERCENTW:
|
||||
pcOut->mTextureBlend = (float)(*((short*)this->mCurrent)) / (float)0xFFFF;
|
||||
pcOut->mTextureBlend = (float)(*((short*)this->mCurrent)) / (float)100;
|
||||
break;
|
||||
|
||||
case Dot3DSFile::CHUNK_MAT_MAP_USCALE:
|
||||
|
||||
Reference in New Issue
Block a user