set_fog

function

set_fog([_color[, _intensity[, _start[, _end]]]])

Description

Sets uniforms bbmod_FogColor, bbmod_FogIntensity, bbmod_FogStart and bbmod_FogRcpRange.

Arguments

Name Type Description
_color Struct.BBMOD_Color/Undefined The color of the fog. If undefined, then the value set by bbmod_fog_set_color is used.
_intensity Real/Undefined The fog intensity. If undefined, then the value set by bbmod_fog_set_intensity is used.
_start Real/Undefined The distance at which the fog starts. If undefined, then the value set by bbmod_fog_set_start is used.
_end Real/Undefined The distance at which the fog has maximum intensity. If undefined, then the value set by bbmod_fog_set_end is used.

Returns

{Struct.BBMOD_DefaultShader] Returns self.

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 18, 2022 using GMDoc.