Set sub light color||doc135702

September 20, 2022

Format

 GameSettings:setSubLightColor(color) 

Description

Sets the color of the sublight. The sub-light is the auxiliary light source of the main light. It illuminates the side that the main light cannot illuminate. Generally, it outlines the outline of the character or compensates the details of the dark part to show the texture of the shadow part of the main object. The light intensity is weaker than that of the main light.


Parameters

Variable name type Description
color Vector3 sub light color


Code Samples

Blockman.Instance().gameSettings:setSubLightColor({x=0.5,y=0.5,z=0.5})
print(Blockman.Instance().gameSettings:getSubLightColor())