mirror of https://github.com/axmolengine/axmol.git
parent
1db29f07bd
commit
cc3df75d1f
|
@ -334,19 +334,19 @@ void Configuration::loadConfigFile(const std::string& filename)
|
|||
|
||||
//light info
|
||||
std::string name = "cocos2d.x.3d.max_dir_light_in_shader";
|
||||
if (_valueDict.find(name) != dataMap.end())
|
||||
if (_valueDict.find(name) != _valueDict.end())
|
||||
_maxDirLightInShader = _valueDict[name].asInt();
|
||||
else
|
||||
_valueDict[name] = Value(_maxDirLightInShader);
|
||||
|
||||
name = "cocos2d.x.3d.max_point_light_in_shader";
|
||||
if (_valueDict.find(name) != dataMap.end())
|
||||
if (_valueDict.find(name) != _valueDict.end())
|
||||
_maxPointLightInShader = _valueDict[name].asInt();
|
||||
else
|
||||
_valueDict[name] = Value(_maxPointLightInShader);
|
||||
|
||||
name = "cocos2d.x.3d.max_spot_light_in_shader";
|
||||
if (_valueDict.find(name) != dataMap.end())
|
||||
if (_valueDict.find(name) != _valueDict.end())
|
||||
_maxSpotLightInShader = _valueDict[name].asInt();
|
||||
else
|
||||
_valueDict[name] = Value(_maxSpotLightInShader);
|
||||
|
|
Loading…
Reference in New Issue