|
Blender V5.3
|
Functions | |
| float | gaussian_factor (float linear_distance, float standard_deviation) |
| float | gaussian_weight (float factor, float square_distance) |
| float | planar_weight (float3 plane_N, float3 plane_P, float3 P, float scale) |
| float | angle_weight (float3 center_N, float3 sample_N) |
Filtering utilities.
Angle weighting. Mostly used for normals. Expects both normals to be normalized.
Definition at line 60 of file eevee_filter.bsl.hh.
References angle_weight(), dot(), pow8f(), and saturate.
Referenced by angle_weight(), eevee::raytracing::denoise::bilateral_main(), eevee::fast_gi::SampleInput::sample_weight_get(), eevee::fast_gi::SampleInput::sample_weight_get(), and eevee::raytracing::denoise::DenoiseSpatial::sample_weight_get().
Return the factor to filter_gaussian_weight. This is handy utility function to compute your gaussian parameter in a documented manner.
https://en.wikipedia.org/wiki/Standard_deviation#/media/File:Standard_deviation_diagram.svg
Example: for a 5px 1d gaussian filter, one would set linear_distance of 2.5f. standard_deviation = 1.0 will cover 68% of the gaussian weight inside the 5px radius. standard_deviation = 2.0 will cover 95% of the gaussian weight inside the 5px radius.
Definition at line 29 of file eevee_filter.bsl.hh.
References gaussian_factor(), and square().
Referenced by eevee::raytracing::denoise::bilateral_main(), gaussian_factor(), and eevee::fast_gi::SampleInput::sample_weight_get().
Gaussian distance weighting. Allow weighting based on distance without null weight whatever the distance. factor is supposed to be a scaling parameter given by filter_gaussian_factor.
Definition at line 40 of file eevee_filter.bsl.hh.
References exp2, and gaussian_weight().
Referenced by eevee::raytracing::denoise::bilateral_main(), gaussian_weight(), planar_weight(), and eevee::fast_gi::SampleInput::sample_weight_get().
Planar distance weighting. Allow to weight based on geometric neighborhood.
Definition at line 49 of file eevee_filter.bsl.hh.
References dot(), gaussian_weight(), P, planar_weight(), scale(), and square().
Referenced by eevee::raytracing::denoise::bilateral_main(), planar_weight(), eevee::fast_gi::SampleInput::sample_weight_get(), eevee::fast_gi::SampleInput::sample_weight_get(), and eevee::raytracing::denoise::DenoiseSpatial::sample_weight_get().