|
|
@ -282,9 +282,12 @@ public class SceneLoader extends DefaultHandler implements AssetLoader { |
|
|
|
node.setLocalScale(SAXUtil.parseVector3(attribs)); |
|
|
|
node.setLocalScale(SAXUtil.parseVector3(attribs)); |
|
|
|
} else if (qName.equals("light")) { |
|
|
|
} else if (qName.equals("light")) { |
|
|
|
parseLight(attribs); |
|
|
|
parseLight(attribs); |
|
|
|
} else if (qName.equals("colourDiffuse")) { |
|
|
|
} else if (qName.equals("colourDiffuse") || qName.equals("colorDiffuse")) { |
|
|
|
assert elementStack.peek().equals("light"); |
|
|
|
if (elementStack.peek().equals("light")){ |
|
|
|
light.setColor(parseColor(attribs)); |
|
|
|
light.setColor(parseColor(attribs)); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
assert elementStack.peek().equals("environment"); |
|
|
|
|
|
|
|
} |
|
|
|
} else if (qName.equals("normal")) { |
|
|
|
} else if (qName.equals("normal")) { |
|
|
|
parseLightNormal(attribs); |
|
|
|
parseLightNormal(attribs); |
|
|
|
} else if (qName.equals("lightAttenuation")) { |
|
|
|
} else if (qName.equals("lightAttenuation")) { |
|
|
|