Changed the decal=true setting to decal=false to make sure that textured models
come out lit ok. The makes the assumption that colour values on the objects and realistic, if they arn't then decal texture can produce better results..
This commit is contained in:
@@ -687,7 +687,8 @@ osg::StateSet* ReaderWriter3DS::createStateSet(Lib3dsMaterial *mat)
|
||||
|
||||
stateset->setAttribute(material);
|
||||
|
||||
bool decal = true;
|
||||
bool decal = false;
|
||||
//bool decal = true;
|
||||
bool textureTransparancy=false;
|
||||
osg::Texture2D* texture1_map = createTexture(&(mat->texture1_map),"texture1_map",textureTransparancy);
|
||||
if (texture1_map)
|
||||
|
||||
Reference in New Issue
Block a user