Hi,
I have a short question: I have a very simple ‘space’ scene where I load some low-poly asteroids. I have one directional light, but everything that’s farther away than 1000 units is not lit and stays dark.
I’ve looked in the documentation, but I can’t find the reason. I did set higher values for draw distance and range in the light, but that didn’t help. I haven’t set LightMasks and do not use zones yet.
The code for the light:
Node* lightNode = scene->CreateChild( "DirectionalLight" );
lightNode->SetDirection( Vector3( 0.0f, -1.0f, 0.2f ) );
Light* light = lightNode->CreateComponent<Light>();
light->SetLightType( LIGHT_DIRECTIONAL );
light->SetFadeDistance( 50000.f );
light->SetDrawDistance( 50000.f );
light->SetRange( 50000.f );
What could be the reason?
Thanks!