From 929cd4fbfec7b7f2b0daa807974de5308d04223a Mon Sep 17 00:00:00 2001 From: yangxiao Date: Mon, 3 Aug 2015 10:12:04 +0800 Subject: [PATCH] set default value for _lightDir --- cocos/3d/CCTerrain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/3d/CCTerrain.cpp b/cocos/3d/CCTerrain.cpp index 9a04e5bb4d..ed2b77874b 100644 --- a/cocos/3d/CCTerrain.cpp +++ b/cocos/3d/CCTerrain.cpp @@ -279,6 +279,7 @@ Terrain::Terrain() : _alphaMap(nullptr) , _stateBlock(nullptr) , _lightMap(nullptr) +, _lightDir(-1.f, -1.f, 0.f) { _stateBlock = RenderState::StateBlock::create(); CC_SAFE_RETAIN(_stateBlock);