|
Blender V5.3
|
#include "gpu_shader_compat.hh"Go to the source code of this file.
Functions | |
| float3 | offset_ray (float3 P, float3 Ng) |
Ray offset to avoid self intersection.
This can be used to compute a modified ray start position for rays leaving from a surface. From: "A Fast and Robust Method for Avoiding Self-Intersection" Ray Tracing Gems, chapter 6.
Definition at line 17 of file gpu_shader_ray_utils.bsl.hh.
References abs, floatBitsToInt, intBitsToFloat, offset_ray(), P, float3::x, int3::x, float3::y, int3::y, float3::z, and int3::z.
Referenced by offset_ray(), and eevee::shadow_eval().