module CrShader::Language::Builtins::Sky

Overview

Built-in variables available in Sky shaders (shader_type :sky).

Defined in:

crshader/language/builtins.cr

Constant Summary

COLOR = Types::Vec3.new

Output color for the sky fragment.

EYEDIR = Types::Vec3.new

Normalized view direction vector looking out into the sky dome.

HALF_RES_COLOR = Types::Vec4.new

Half-resolution background radiance sample.

LIGHT0_COLOR = Types::Vec3.new

Radiance color of the primary directional light.

LIGHT0_DIRECTION = Types::Vec3.new

Direction vector pointing towards the primary directional light (sun).

LIGHT0_ENABLED = true

True if the primary directional light is enabled.

LIGHT0_ENERGY = 1.0_f32

Energy multiplier of the primary directional light.

QUARTER_RES_COLOR = Types::Vec4.new

Quarter-resolution background radiance sample.

SKY_COORDS = Types::Vec2.new

Equirectangular spherical coordinates on the sky sphere.