Added XML load filename and texture references for skybox
--HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4080
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#import "KRSpotLight.h"
|
||||
#import "KRDirectionalLight.h"
|
||||
#import "KRInstance.h"
|
||||
#import "KRSkyBox.h"
|
||||
|
||||
|
||||
KRNode::KRNode(KRContext &context, std::string name) : KRContextObject(context)
|
||||
@@ -142,7 +143,8 @@ KRNode *KRNode::LoadXML(KRContext &context, tinyxml2::XMLElement *e) {
|
||||
new_node = new KRSpotLight(context, szName);
|
||||
} else if(strcmp(szElementName, "mesh") == 0) {
|
||||
new_node = new KRInstance(context, szName, szName, KRMat4(), e->Attribute("light_map"));
|
||||
|
||||
} else if(strcmp(szElementName, "sky_box") == 0) {
|
||||
new_node = new KRSkyBox(context, szName);
|
||||
}
|
||||
|
||||
if(new_node) {
|
||||
|
||||
Reference in New Issue
Block a user