|
Blender V5.3
|
#include "gpu_shader_compat.hh"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) |
Definition at line 46 of file eevee_octahedron_lib.bsl.hh.
References abs, floor, fract(), octahedral_mirror_repeat_uv(), float2::x, x, and float2::y.
Referenced by octahedral_mirror_repeat_uv().
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().
Definition at line 29 of file eevee_octahedron_lib.bsl.hh.
References abs, octahedral_uv_to_direction(), sign(), float2::x, and float2::y.
Referenced by octahedral_uv_to_direction(), and eevee::lightprobe::sphere::texel_to_direction().