From d6eb1b938fed835a679a73d90720512e3114401d Mon Sep 17 00:00:00 2001 From: yangxiao Date: Thu, 8 Oct 2015 11:27:02 +0800 Subject: [PATCH] correct spot light init value --- cocos/3d/CCMesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/3d/CCMesh.cpp b/cocos/3d/CCMesh.cpp index 7b7e7e4998..5d79a10e97 100644 --- a/cocos/3d/CCMesh.cpp +++ b/cocos/3d/CCMesh.cpp @@ -80,7 +80,7 @@ void Mesh::resetLightUniformValues() _spotLightUniformColorValues.assign(maxSpotLight, Vec3::ZERO); _spotLightUniformPositionValues.assign(maxSpotLight, Vec3::ZERO); _spotLightUniformDirValues.assign(maxSpotLight, Vec3::ZERO); - _spotLightUniformInnerAngleCosValues.assign(maxSpotLight, 0.0f); + _spotLightUniformInnerAngleCosValues.assign(maxSpotLight, 1.0f); _spotLightUniformOuterAngleCosValues.assign(maxSpotLight, 0.0f); _spotLightUniformRangeInverseValues.assign(maxSpotLight, 0.0f); }