mirror of https://github.com/axmolengine/axmol.git
set default value for _lightDir
This commit is contained in:
parent
8a6c49b5a3
commit
929cd4fbfe
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue