|
Blender V5.3
|
#include "gpu_shader_codegen_lib.glsl"Go to the source code of this file.
Classes | |
| struct | Closure |
| struct | ViewMatrices |
| struct | ObjectMatrices |
| struct | ObjectInfos |
| struct | ShadingData |
| struct | KernelGlobals |
| struct | Coordinates |
Macros | |
| #define | CLOSURE_DEFAULT |
Enumerations | |
| enum | eObjectInfoFlag : uint32_t { OBJECT_SELECTED = (1u << 0u) , OBJECT_FROM_DUPLI = (1u << 1u) , OBJECT_FROM_SET = (1u << 2u) , OBJECT_ACTIVE = (1u << 3u) , OBJECT_NEGATIVE_SCALE = (1u << 4u) , OBJECT_HOLDOUT = (1u << 5u) , OBJECT_ACTIVE_EDIT_MODE = (1u << 6u) , OBJECT_NO_INFO = ~OBJECT_HOLDOUT } |
| enum | RayPipelineType : uint32_t { RAY_TYPE_CAMERA , RAY_TYPE_SHADOW , RAY_TYPE_DIFFUSE , RAY_TYPE_GLOSSY } |
| #define CLOSURE_DEFAULT |
Definition at line 19 of file gpu_shader_material_interface.bsl.hh.
| enum eObjectInfoFlag : uint32_t |
| Enumerator | |
|---|---|
| OBJECT_SELECTED | |
| OBJECT_FROM_DUPLI | |
| OBJECT_FROM_SET | |
| OBJECT_ACTIVE | |
| OBJECT_NEGATIVE_SCALE | |
| OBJECT_HOLDOUT | |
| OBJECT_ACTIVE_EDIT_MODE | |
| OBJECT_NO_INFO | |
Definition at line 23 of file gpu_shader_material_interface.bsl.hh.
| enum RayPipelineType : uint32_t |
| Enumerator | |
|---|---|
| RAY_TYPE_CAMERA | |
| RAY_TYPE_SHADOW | |
| RAY_TYPE_DIFFUSE | |
| RAY_TYPE_GLOSSY | |
Definition at line 37 of file gpu_shader_material_interface.bsl.hh.
| float ambient_occlusion_eval | ( | const KernelGlobals & | , |
| const ShadingData & | , | ||
| float3 | , | ||
| float | , | ||
| float | , | ||
| float | ) |
Definition at line 337 of file gpu_shader_material_interface.bsl.hh.
References ambient_occlusion_eval(), and resource_table.
| float4 attr_load_color_post | ( | KernelGlobals & | , |
| float4 | attr ) |
Definition at line 349 of file gpu_shader_material_interface.bsl.hh.
References attr_load_color_post(), and resource_table.
| float attr_load_temperature_post | ( | KernelGlobals & | , |
| float | attr ) |
Definition at line 353 of file gpu_shader_material_interface.bsl.hh.
References attr_load_temperature_post(), and resource_table.
| float4 attr_load_uniform | ( | KernelGlobals & | , |
| const ShadingData & | , | ||
| float4 | , | ||
| uint | ) |
Definition at line 359 of file gpu_shader_material_interface.bsl.hh.
References attr_load_uniform(), and resource_table.
| void brdf_f82_tint_lut | ( | const KernelGlobals & | , |
| float3 | , | ||
| float3 | , | ||
| float | , | ||
| float | , | ||
| bool | , | ||
| float3 & | ) |
Definition at line 266 of file gpu_shader_material_interface.bsl.hh.
References brdf_f82_tint_lut(), and resource_table.
Definition at line 298 of file gpu_shader_material_interface.bsl.hh.
References brdf_lut(), and resource_table.
| float2 bsdf_lut | ( | const KernelGlobals & | , |
| float | , | ||
| float | , | ||
| float | , | ||
| bool | ) |
Definition at line 289 of file gpu_shader_material_interface.bsl.hh.
References bsdf_lut(), and resource_table.
| void bsdf_lut | ( | const KernelGlobals & | , |
| float3 | , | ||
| float3 | , | ||
| float3 | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| bool | , | ||
| float3 & | , | ||
| float3 & | ) |
Definition at line 276 of file gpu_shader_material_interface.bsl.hh.
References bsdf_lut(), and resource_table.
Definition at line 136 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_add().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureDiffuse | ) |
Definition at line 144 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureDiffuse | , | ||
| ClosureReflection | ) |
Definition at line 209 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureDiffuse | , | ||
| ClosureReflection | , | ||
| ClosureReflection | ) |
Definition at line 231 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureDiffuse | , | ||
| ClosureReflection | , | ||
| ClosureReflection | , | ||
| ClosureRefraction | ) |
Definition at line 239 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureEmission | ) |
Definition at line 176 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureHair | ) |
Definition at line 198 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureReflection | ) |
Definition at line 158 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureReflection | , | ||
| ClosureReflection | ) |
Definition at line 216 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureReflection | , | ||
| ClosureRefraction | ) |
Definition at line 202 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureRefraction | ) |
Definition at line 164 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureSubsurface | ) |
Definition at line 148 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureThinRefraction | ) |
Definition at line 170 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureTranslucent | ) |
Definition at line 152 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureTransparency | ) |
Definition at line 180 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureVolumeAbsorption | ) |
Definition at line 192 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureVolumeScatter | ) |
Definition at line 186 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureVolumeScatter | , | ||
| ClosureVolumeAbsorption | , | ||
| ClosureEmission | ) |
Definition at line 223 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_eval().
Definition at line 140 of file gpu_shader_material_interface.bsl.hh.
References Closure, and closure_mix().
| float4 closure_to_rgba | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| Closure | cl ) |
Deferred lighting evaluation: Lighting is evaluated in a separate pass.
Outputs shading parameter per pixel using a randomized set of BSDFs. Some render-pass are written during this pass.
Definition at line 249 of file gpu_shader_material_interface.bsl.hh.
References average(), Closure, closure_to_rgba(), closure_weights_reset(), ShadingData::emission, UtilityTexture::fetch(), fract(), ShadingData::frag_co, eevee::PipelineConstants::is_occupancy_pipe, noise(), KernelGlobals::pipe, resource_table, eevee::Sampling::rng_1D_get(), KernelGlobals::sampling, saturate, static_branch, ShadingData::transmittance, UTIL_BLUE_NOISE_LAYER, and KernelGlobals::util_tx.
Referenced by closure_to_rgba(), closure_to_rgba(), and node_shader_to_rgba().
| Coordinates coordinate_impl | ( | KernelGlobals & | , |
| const ShadingData & | , | ||
| float3 | , | ||
| float3 | ) |
Definition at line 327 of file gpu_shader_material_interface.bsl.hh.
References coordinate_impl(), and resource_table.
| float derivative_scale_get | ( | KernelGlobals & | ) |
Definition at line 498 of file gpu_shader_material_interface.bsl.hh.
References derivative_scale_get(), and resource_table.
Definition at line 313 of file gpu_shader_material_interface.bsl.hh.
References F0_from_ior().
Definition at line 308 of file gpu_shader_material_interface.bsl.hh.
References f0_from_ior().
Definition at line 261 of file gpu_shader_material_interface.bsl.hh.
References F_brdf_multi_scatter(), and T.
Definition at line 256 of file gpu_shader_material_interface.bsl.hh.
References F_brdf_single_scatter(), and T.
| float4 node_attribute_layer_impl | ( | KernelGlobals & | , |
| const uint | ) |
Definition at line 366 of file gpu_shader_material_interface.bsl.hh.
References node_attribute_layer_impl(), and resource_table.
| float node_attribute_light_cutoff_distance_impl | ( | KernelGlobals & | , |
| int | ) |
Definition at line 397 of file gpu_shader_material_interface.bsl.hh.
References float, node_attribute_light_cutoff_distance_impl(), and resource_table.
| float4 node_attribute_light_impl | ( | KernelGlobals & | , |
| int | , | ||
| uint | ) |
Definition at line 371 of file gpu_shader_material_interface.bsl.hh.
References node_attribute_light_impl(), and resource_table.
| bool node_attribute_light_is_area_impl | ( | KernelGlobals & | , |
| int | ) |
Definition at line 392 of file gpu_shader_material_interface.bsl.hh.
References node_attribute_light_is_area_impl(), and resource_table.
| bool node_attribute_light_is_point_impl | ( | KernelGlobals & | , |
| int | ) |
Definition at line 382 of file gpu_shader_material_interface.bsl.hh.
References node_attribute_light_is_point_impl(), and resource_table.
| bool node_attribute_light_is_spot_impl | ( | KernelGlobals & | , |
| int | ) |
Definition at line 387 of file gpu_shader_material_interface.bsl.hh.
References node_attribute_light_is_spot_impl(), and resource_table.
| bool node_attribute_light_is_sun_impl | ( | KernelGlobals & | , |
| int | ) |
Definition at line 377 of file gpu_shader_material_interface.bsl.hh.
References node_attribute_light_is_sun_impl(), and resource_table.
| void node_light_accumulation_impl | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| int | , | ||
| float3 | , | ||
| float3 | , | ||
| float3 | , | ||
| float3 | , | ||
| float3 | , | ||
| float3 | , | ||
| float | , | ||
| Closure & | ) |
Definition at line 424 of file gpu_shader_material_interface.bsl.hh.
References Closure, node_light_accumulation_impl(), and resource_table.
| void node_light_evaluation_common_impl | ( | KernelGlobals & | , |
| int | , | ||
| float3 | , | ||
| float3 & | , | ||
| float & | , | ||
| float & | ) |
Definition at line 450 of file gpu_shader_material_interface.bsl.hh.
References node_light_evaluation_common_impl(), and resource_table.
| void node_light_evaluation_impl | ( | KernelGlobals & | , |
| const ShadingData & | , | ||
| int | , | ||
| float3 | , | ||
| float3 | , | ||
| float | , | ||
| float & | ) |
Definition at line 460 of file gpu_shader_material_interface.bsl.hh.
References node_light_evaluation_impl(), and resource_table.
| template void node_light_evaluation_impl< false > | ( | KernelGlobals & | , |
| const ShadingData & | , | ||
| int | , | ||
| float3 | , | ||
| float3 | , | ||
| float | , | ||
| float & | ) |
References node_light_evaluation_impl().
| template void node_light_evaluation_impl< true > | ( | KernelGlobals & | , |
| const ShadingData & | , | ||
| int | , | ||
| float3 | , | ||
| float3 | , | ||
| float | , | ||
| float & | ) |
References node_light_evaluation_impl().
| void node_light_info_impl | ( | KernelGlobals & | , |
| const int | , | ||
| float4 & | , | ||
| float & | , | ||
| float3 & | ) |
Definition at line 440 of file gpu_shader_material_interface.bsl.hh.
References node_light_info_impl(), and resource_table.
| void node_shadow_raycast_impl | ( | KernelGlobals & | , |
| const ShadingData & | , | ||
| int | , | ||
| float3 | , | ||
| float | , | ||
| float4 & | ) |
Definition at line 413 of file gpu_shader_material_interface.bsl.hh.
References node_shadow_raycast_impl(), and resource_table.
| void output_aov | ( | KernelGlobals & | , |
| int2 | , | ||
| float4 | , | ||
| float | , | ||
| uint | , | ||
| float | , | ||
| eObjectInfoFlag | ) |
Definition at line 505 of file gpu_shader_material_interface.bsl.hh.
References output_aov(), and resource_table.
| void raycast_eval | ( | KernelGlobals & | , |
| const ShadingData & | , | ||
| float3 | , | ||
| float3 | , | ||
| float | , | ||
| bool | , | ||
| bool & | , | ||
| bool & | , | ||
| float & | , | ||
| float3 & | , | ||
| float3 & | ) |
Definition at line 477 of file gpu_shader_material_interface.bsl.hh.
References raycast_eval(), and resource_table.
| void scene_time_uniforms | ( | KernelGlobals & | , |
| float & | , | ||
| float & | ) |
Definition at line 405 of file gpu_shader_material_interface.bsl.hh.
References resource_table, and scene_time_uniforms().
| float texture_lod_bias_get | ( | KernelGlobals & | ) |
Definition at line 493 of file gpu_shader_material_interface.bsl.hh.
References resource_table, and texture_lod_bias_get().