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 The color of the fog. If undefined, then the value set by bbmod_fog_set_color is used.
_intensity Real The fog intensity. If undefined, then the value set by bbmod_fog_set_intensity is used.
_start Real The distance at which the fog starts. If undefined, then the value set by bbmod_fog_set_start is used.
_end Real 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_BaseShader Returns self.

Do you find this page helpful?

Copyright © 2023, BlueBurn. Built on March 24, 2023 using GMDoc.