Esc

Gltf_Light_Spot

structextensionsince 0.36.1Source
  • macOS: Gltf_Light_Spot works on macOS
  • Linux: Gltf_Light_Spot works on Linux
  • Windows: Gltf_Light_Spot works on Windows
  • Wasm: Gltf_Light_Spot works on Wasm

Declaration

Gltf_Light_Spot :: struct @json(rename_all=camelCase) {
    inner_cone_angle: float32 = 0.0; @json(default)    outer_cone_angle: float32 = cast(float32) 0.7853981633974483; @json(default)}

The cone of a spot light, in radians.

Example↗
spot := Gltf_Light_Spot.{};
assert(spot.inner_cone_angle == 0 && spot.outer_cone_angle > 0.78 && spot.outer_cone_angle < 0.79);

See also