Set key light direction||doc135700

September 20, 2022

Format

 GameSettings:setMainLightDir(dir) 

Description

Sets the key light direction. The main light is the main light source in the scene. It is usually used to illuminate the main objects in the scene and the surrounding area, and the light intensity is large.


Parameters

Variable name type Description
dir Vector3 main light direction


Code Samples

Blockman.Instance().gameSettings:setMainLightDir({x=0,y=-1,z=0})