|
Blender V5.3
|
#include <eevee_ray_types_lib.bsl.hh>
Public Member Functions | |
| float | thickness (float sample_ss_z, float sample_ss_t, float sample_min_thickness) |
| bool | intersect (float sample_ss_z, float sample_ss_t, float sample_min_thickness, float ray_ss_z, float ray_ss_z_prev) |
Static Public Member Functions | |
| static ScreenThicknessEstimator | init (float start_z) |
Public Attributes | |
| float2 | prev_ss_z_slope |
| float | prev_ss_z |
| float | prev_t |
Definition at line 98 of file eevee_ray_types_lib.bsl.hh.
|
inlinestatic |
Definition at line 106 of file eevee_ray_types_lib.bsl.hh.
References prev_ss_z, prev_ss_z_slope, and prev_t.
Referenced by eevee::fast_gi::eval(), raytrace_screen(), and raytrace_screen_2().
|
inline |
Check ray-sample intersection and update the internal state.
| sample_ss_z | The depth buffer sample. |
| sample_ss_t | The screen space ray t in pixel. |
| sample_min_thickness | The minimum thickness to consider this sample. Ideally, it should be equal to the radius of the pixel at the sample depth. |
| ray_ss_z | The ray Z depth in depth buffer unit. |
| ray_ss_z_prev | The ray Z depth in depth buffer unit of the previous iteration. |
Definition at line 159 of file eevee_ray_types_lib.bsl.hh.
References abs, and thickness().
Referenced by raytrace_screen().
|
inline |
Return the screen thickness (in depth buffer unit) of a sample and update the internal state.
| sample_ss_z | The depth buffer sample. |
| sample_ss_t | The screen space ray t in pixel. |
| sample_min_thickness | The minimum thickness to consider this sample. Ideally, it should be equal to the radius of the pixel at the sample depth. |
Definition at line 123 of file eevee_ray_types_lib.bsl.hh.
References abs, any(), greaterThan, max, prev_ss_z, prev_ss_z_slope, prev_t, and thickness().
Referenced by eevee::fast_gi::eval(), intersect(), raytrace_screen_2(), and thickness().
| float ScreenThicknessEstimator::prev_ss_z |
Definition at line 102 of file eevee_ray_types_lib.bsl.hh.
Referenced by init(), and thickness().
| float2 ScreenThicknessEstimator::prev_ss_z_slope |
Definition at line 100 of file eevee_ray_types_lib.bsl.hh.
Referenced by init(), and thickness().
| float ScreenThicknessEstimator::prev_t |
Definition at line 104 of file eevee_ray_types_lib.bsl.hh.
Referenced by init(), and thickness().