|
Blender V5.3
|
#include "eevee_bxdf_types.bsl.hh"#include "eevee_ltc_lut_lib.bsl.hh"#include "eevee_sampling_lib.bsl.hh"#include "eevee_thickness_lib.bsl.hh"#include "gpu_shader_codegen_lib.glsl"#include "gpu_shader_math_base.bsl.hh"#include "gpu_shader_math_safe.bsl.hh"#include "gpu_shader_ray.bsl.hh"Go to the source code of this file.
Functions | |
Diffuse BSDF | |
| BsdfSample | bxdf_diffuse_sample (const float3 rand_cylinder) |
| BsdfEval | bxdf_diffuse_eval (float3 N, float3 L) |
| float | bxdf_diffuse_perceived_roughness () |
| LightProbeRay | bxdf_diffuse_lightprobe (float3 N) |
| ClosureLight | bxdf_diffuse_light (ClosureUndetermined cl, float3 V) |
Translucent BSDF | |
| BsdfSample | bxdf_translucent_sample (float3 rand, Thickness thickness) |
| BsdfEval | bxdf_translucent_eval (float3 N, float3 L, Thickness thickness) |
| float | bxdf_translucent_perceived_roughness () |
| LightProbeRay | bxdf_translucent_lightprobe (float3 N, Thickness thickness) |
| Ray | bxdf_translucent_ray_amend (ClosureUndetermined cl, float3, Ray ray, Thickness thickness) |
| ClosureLight | bxdf_translucent_light (ClosureUndetermined cl, float3 V, Thickness thickness) |
Definition at line 35 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_diffuse_eval(), dot(), L, M_1_PI, N, and saturate.
Referenced by bxdf_diffuse_eval(), and closure_evaluate_pdf().
| ClosureLight bxdf_diffuse_light | ( | ClosureUndetermined | cl, |
| float3 | V ) |
Definition at line 55 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_diffuse_light(), ClosureLight::N, eevee::LTCData::pack_identity(), ClosureLight::type, and V.
Referenced by bxdf_diffuse_light(), and closure_light_new_ex().
| LightProbeRay bxdf_diffuse_lightprobe | ( | float3 | N | ) |
Definition at line 47 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_diffuse_lightprobe(), bxdf_diffuse_perceived_roughness(), LightProbeRay::dominant_direction, N, and LightProbeRay::perceptual_roughness.
Referenced by bxdf_diffuse_lightprobe(), and bxdf_lightprobe_ray().
| float bxdf_diffuse_perceived_roughness | ( | ) |
Definition at line 42 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_diffuse_perceived_roughness().
Referenced by bxdf_diffuse_lightprobe(), bxdf_diffuse_perceived_roughness(), and closure_apparent_roughness_get().
| BsdfSample bxdf_diffuse_sample | ( | const float3 | rand_cylinder | ) |
Returns a tangent space diffuse direction following the Lambertian distribution.
| rand_cylinder | random point on the unit cylinder (result of sample_cylinder). The Z component can be biased towards 1. |
Definition at line 27 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_diffuse_sample(), BsdfSample::direction, M_1_PI, BsdfSample::pdf, sample_cos_hemisphere(), and packed_float3::z.
Referenced by bxdf_diffuse_sample(), bxdf_translucent_sample(), and eevee::ray_generate_direction().
Definition at line 95 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_translucent_eval(), dot(), L, M_1_PI, Thickness::mode(), N, saturate, Sphere, and Thickness::value().
Referenced by bxdf_translucent_eval(), and closure_evaluate_pdf().
| ClosureLight bxdf_translucent_light | ( | ClosureUndetermined | cl, |
| float3 | V, | ||
| Thickness | thickness ) |
Definition at line 135 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_translucent_light(), eevee::LTCData::form_factor_type, eevee::LTCData::identity(), Thickness::mode(), ClosureLight::N, eevee::LTCData::pack_to(), Sphere, TwoSidedCosineSphere, ClosureLight::type, V, and Thickness::value().
Referenced by bxdf_translucent_light(), and closure_light_new_ex().
| LightProbeRay bxdf_translucent_lightprobe | ( | float3 | N, |
| Thickness | thickness ) |
Definition at line 114 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_translucent_lightprobe(), bxdf_translucent_perceived_roughness(), LightProbeRay::dominant_direction, Thickness::mode(), N, LightProbeRay::perceptual_roughness, Sphere, and Thickness::value().
Referenced by bxdf_lightprobe_ray(), and bxdf_translucent_lightprobe().
| float bxdf_translucent_perceived_roughness | ( | ) |
Definition at line 109 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_translucent_perceived_roughness().
Referenced by bxdf_translucent_lightprobe(), bxdf_translucent_perceived_roughness(), and closure_apparent_roughness_get().
Definition at line 125 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_translucent_ray_amend(), Ray::direction, Thickness::mode(), Ray::origin, Sphere, and Thickness::value().
Referenced by bxdf_translucent_ray_amend(), and raytrace_thickness_ray_amend().
| BsdfSample bxdf_translucent_sample | ( | float3 | rand, |
| Thickness | thickness ) |
Returns a tangent space diffuse direction following and inverted Lambertian distribution.
| rand | random point on the unit cylinder (result of sample_cylinder). The Z component can be biased towards 1. |
| thickness | Thickness of the object. 0 is considered thin. |
Definition at line 78 of file eevee_bxdf_diffuse.bsl.hh.
References bxdf_diffuse_sample(), bxdf_translucent_sample(), cos_theta(), BsdfSample::direction, M_1_PI, Thickness::mode(), BsdfSample::pdf, sin_from_cos(), Sphere, Thickness::value(), and float3::x.
Referenced by bxdf_translucent_sample(), and eevee::ray_generate_direction().