Improved Blender/Collada shadeless->unshaded import
This commit is contained in:
parent
5e01566d01
commit
101e0c9ec6
4 changed files with 12 additions and 1 deletions
|
|
@ -736,6 +736,9 @@ void Collada::_parse_effect_material(XMLParser& parser,Effect &effect,String &id
|
|||
effect.found_double_sided=true;
|
||||
effect.double_sided=parser.get_node_data().to_int();
|
||||
COLLADA_PRINT("double sided: "+itos(parser.get_node_data().to_int()));
|
||||
} else if (parser.get_node_name()=="unshaded") {
|
||||
parser.read();
|
||||
effect.unshaded=parser.get_node_data().to_int();
|
||||
} else if (parser.get_node_name()=="bump") {
|
||||
|
||||
// color or texture types
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ public:
|
|||
float shininess;
|
||||
bool found_double_sided;
|
||||
bool double_sided;
|
||||
bool unshaded;
|
||||
|
||||
String get_texture_path(const String& p_source,Collada& state) const;
|
||||
|
||||
|
|
@ -83,7 +84,7 @@ public:
|
|||
double_sided=true;
|
||||
found_double_sided=false;
|
||||
shininess=40;
|
||||
|
||||
unshaded=false;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue