Set to enable specular reflection||doc135720

September 20, 2022

Format

 GameSettings:setEnableSpecular(_val) 

Description

Sets the value at which to start specular reflection. Specular reflection is that when the light hits the surface of the object at a certain angle, the light is reflected from the same angle on the other side of the normal. The light is related to the position of the camera. If it happens to be on the reflected light, you can feel the light. Otherwise, you will feel the light. until the effect of light exposure is weakened.


Parameters

Variable name type Description
_val float start value


Code Samples

Blockman.Instance().gameSettings:setEnableSpecular(1.0)
print(Blockman.Instance().gameSettings:getEnableSpecular())