sm.render
Render settings.
Functions
getDrawDistance
sm.render.getDrawDistance()
Client-Only
Gets the draw distance.
Returns:- [ number ]: The draw distance.
getOutdoorLighting
sm.render.getOutdoorLighting()
Client-Only
Gets the lighting cycle fraction.
Returns:- [ number ]: The fraction of the day cycle lighting.
getScreenCoordinatesFromWorldPosition
sm.render.getScreenCoordinatesFromWorldPosition( position, width, height )
Client-Only
Return the screen coordinates that align with the given world position.
Arguments:position
[ Vec3 ]: The world position.width
[ int ]: The screen width.height
[ int ]: The screen height.
- [ number ]: The X coordinate on the screen.
- [ number ]: The Y coordinate on the screen.
isOutdoor
sm.render.isOutdoor()
Client-Only
Checks if the local client is outdoor.
Returns:- [ bool ]: Whether the local client is outdoors or not.
setOutdoorLighting
sm.render.setOutdoorLighting( value )
Client-Only
Sets the lighting cycle fraction.
Arguments:value
[ number ]: The day cycle fraction.