Class: Light
Lua
C++
Edit

Light:SetRange

This method sets the distance to which the light illuminates.

Syntax

Parameters

Parameter Description
nearrange near range used for shadow map rendering
farrange the maximum distance the light can reach

Remarks

Point and spot lights should use a near and far range above zero.

Box lights can have a negative near range, to make light appear behind the light position.

Copyright © 2024 Ultra Software.
All rights reserved.