Blender V5.3
eevee_octahedron_lib.bsl.hh File Reference

Go to the source code of this file.

Functions

float2 octahedral_uv_from_direction (float3 co)
float3 octahedral_uv_to_direction (float2 co)
float2 octahedral_mirror_repeat_uv (float2 uv)

Function Documentation

◆ octahedral_mirror_repeat_uv()

float2 octahedral_mirror_repeat_uv ( float2 uv)

◆ octahedral_uv_from_direction()

float2 octahedral_uv_from_direction ( float3 co)

Convert from a cube-map vector to an octahedron UV coordinate.

Definition at line 12 of file eevee_octahedron_lib.bsl.hh.

References abs, dot(), octahedral_uv_from_direction(), sign(), step, and float3::z.

Referenced by eevee::lightprobe::sphere::direction_to_uv(), and octahedral_uv_from_direction().

◆ octahedral_uv_to_direction()