set default value for _lightDir

This commit is contained in:
yangxiao 2015-08-03 10:12:04 +08:00
parent 8a6c49b5a3
commit 929cd4fbfe
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ Terrain::Terrain()
: _alphaMap(nullptr) : _alphaMap(nullptr)
, _stateBlock(nullptr) , _stateBlock(nullptr)
, _lightMap(nullptr) , _lightMap(nullptr)
, _lightDir(-1.f, -1.f, 0.f)
{ {
_stateBlock = RenderState::StateBlock::create(); _stateBlock = RenderState::StateBlock::create();
CC_SAFE_RETAIN(_stateBlock); CC_SAFE_RETAIN(_stateBlock);