mirror of https://github.com/axmolengine/axmol.git
correct spot light init value
This commit is contained in:
parent
2dbe0c1a90
commit
d6eb1b938f
|
@ -80,7 +80,7 @@ void Mesh::resetLightUniformValues()
|
||||||
_spotLightUniformColorValues.assign(maxSpotLight, Vec3::ZERO);
|
_spotLightUniformColorValues.assign(maxSpotLight, Vec3::ZERO);
|
||||||
_spotLightUniformPositionValues.assign(maxSpotLight, Vec3::ZERO);
|
_spotLightUniformPositionValues.assign(maxSpotLight, Vec3::ZERO);
|
||||||
_spotLightUniformDirValues.assign(maxSpotLight, Vec3::ZERO);
|
_spotLightUniformDirValues.assign(maxSpotLight, Vec3::ZERO);
|
||||||
_spotLightUniformInnerAngleCosValues.assign(maxSpotLight, 0.0f);
|
_spotLightUniformInnerAngleCosValues.assign(maxSpotLight, 1.0f);
|
||||||
_spotLightUniformOuterAngleCosValues.assign(maxSpotLight, 0.0f);
|
_spotLightUniformOuterAngleCosValues.assign(maxSpotLight, 0.0f);
|
||||||
_spotLightUniformRangeInverseValues.assign(maxSpotLight, 0.0f);
|
_spotLightUniformRangeInverseValues.assign(maxSpotLight, 0.0f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue