module CrShader::Language::Builtins::Fog

Overview

Built-in variables available in Volumetric Fog shaders (shader_type :fog).

Defined in:

crshader/language/builtins.cr

Constant Summary

DENSITY = 0.0_f32

Volumetric extinction density for the fog voxel.

FOG_COLOR = Types::Vec4.new

Output color and emission for the volumetric fog voxel.

SDF = 0.0_f32

Signed distance field (SDF) distance to the nearest scene geometry.

SDF_NORMAL = Types::Vec3.new

Surface normal gradient derived from the signed distance field.

WORLD_POSITION = Types::Vec3.new

World-space coordinate of the current fog voxel.