|
Blender V5.3
|
Namespaces | |
| namespace | color |
| namespace | depth |
| namespace | dof |
| namespace | outline |
| namespace | prepass |
| namespace | resolve |
| namespace | shadow |
| namespace | taa |
| namespace | transparency |
| namespace | volume |
Classes | |
| struct | Cavity |
| struct | World |
Definition at line 28 of file workbench_world_light.bsl.hh.
References blinn_specular(), NL, and pow.
Referenced by blinn_specular(), and get_world_lighting().
Definition at line 19 of file workbench_world_light.bsl.hh.
References brdf_approx(), exp2, and mix.
Referenced by brdf_approx(), and get_world_lighting().
| void workbench::cavity_compute | ( | const workbench::Cavity & | cavity, |
| const workbench::World & | world, | ||
| ViewMatrices | view, | ||
| sampler2DDepth | depth_tx, | ||
| sampler2D | normal_tx, | ||
| float2 | screenco, | ||
| float & | cavities, | ||
| float & | edges ) |
Definition at line 21 of file workbench_cavity.bsl.hh.
References abs, any(), WorldData::cavity_attenuation, cavity_compute(), WorldData::cavity_distance, WorldData::cavity_jitter_scale, WorldData::cavity_ridge_factor, WorldData::cavity_sample_count_inv, WorldData::cavity_sample_end, WorldData::cavity_sample_start, WorldData::cavity_valley_factor, clamp(), dot(), greaterThan, len(), length(), noise(), normal_decode(), ViewMatrices::point_screen_to_view(), position, resource_table, texture(), WorldData::viewport_size, ViewMatrices::winmat, float2::x, float2::y, and float3::z.
Referenced by cavity_compute(), and workbench::resolve::frag().
| void workbench::curvature_compute | ( | const workbench::World & | world, |
| usampler2D | object_id_tx, | ||
| sampler2D | normal_tx, | ||
| float2 | uv, | ||
| float & | curvature ) |
Definition at line 19 of file workbench_curvature.bsl.hh.
References curvature_compute(), WorldData::curvature_ridge, curvature_soft_clamp(), WorldData::curvature_valley, normal_decode(), resource_table, texture(), WorldData::ui_scale, and WorldData::viewport_size_inv.
Referenced by curvature_compute(), and workbench::resolve::frag().
Definition at line 11 of file workbench_curvature.bsl.hh.
References curvature_soft_clamp().
Referenced by curvature_compute(), and curvature_soft_clamp().
Definition at line 14 of file workbench_world_light.bsl.hh.
References fast_rcp(), floatBitsToInt, and intBitsToFloat.
Referenced by fast_rcp(), and wrapped_lighting().
Definition at line 63 of file workbench_common.bsl.hh.
References float, float_pair_decode(), and ROUGHNESS_BITS.
Referenced by float_pair_decode(), and workbench::resolve::frag().
Definition at line 51 of file workbench_common.bsl.hh.
References float, float_pair_encode(), and ROUGHNESS_BITS.
Referenced by float_pair_encode(), and workbench::prepass::frag_opaque().
| float3 workbench::get_matcap_lighting | ( | const workbench::World & | world, |
| sampler2D | diffuse_matcap, | ||
| sampler2D | specular_matcap, | ||
| float3 | base_color, | ||
| float3 | N, | ||
| float3 | I ) |
Definition at line 27 of file workbench_matcap.bsl.hh.
References float, get_matcap_lighting(), I, WorldData::matcap_orientation, matcap_uv_compute(), N, resource_table, textureLod(), and WorldData::use_specular.
Referenced by workbench::resolve::frag(), workbench::prepass::frag_transparent(), get_matcap_lighting(), and get_matcap_lighting().
| float3 workbench::get_matcap_lighting | ( | const workbench::World & | world, |
| sampler2DArray | matcap, | ||
| float3 | base_color, | ||
| float3 | N, | ||
| float3 | I ) |
Definition at line 45 of file workbench_matcap.bsl.hh.
References float, get_matcap_lighting(), I, WorldData::matcap_orientation, matcap_uv_compute(), N, resource_table, textureLod(), and WorldData::use_specular.
| float workbench::get_shadow | ( | const workbench::World & | world, |
| float3 | N, | ||
| bool | force_shadow ) |
Definition at line 131 of file workbench_world_light.bsl.hh.
References dot(), get_shadow(), N, resource_table, WorldData::shadow_add, WorldData::shadow_direction_vs, WorldData::shadow_focus, WorldData::shadow_mul, WorldData::shadow_shift, and smoothstep().
Referenced by workbench::resolve::frag(), workbench::prepass::frag_transparent(), and get_shadow().
| float3 workbench::get_world_lighting | ( | const workbench::World & | world, |
| float3 | base_color, | ||
| float | roughness, | ||
| float | metallic, | ||
| float3 | N, | ||
| float3 | I ) |
Definition at line 46 of file workbench_world_light.bsl.hh.
References WorldData::ambient_color, blinn_specular(), brdf_approx(), SolidLightData::diffuse_color_wrap, SolidLightData::direction, dot(), exp2, get_world_lighting(), I, L, WorldData::lights, mix, N, normalize, R, reflect, resource_table, saturate, SolidLightData::specular_color, unroll, WorldData::use_specular, w(), wrap(), and wrapped_lighting().
Referenced by workbench::resolve::frag(), workbench::prepass::frag_transparent(), and get_world_lighting().
Definition at line 13 of file workbench_matcap.bsl.hh.
References b, dot(), I, matcap_uv_compute(), N, and float2::x.
Referenced by get_matcap_lighting(), get_matcap_lighting(), and matcap_uv_compute().
Definition at line 24 of file workbench_common.bsl.hh.
References dot(), normal_decode(), sqrt, and float3::z.
Referenced by cavity_compute(), curvature_compute(), workbench::resolve::frag(), workbench::shadow::rt::frag(), and normal_decode().
Definition at line 37 of file workbench_common.bsl.hh.
References clamp(), normal_encode(), normalize, sqrt, and float3::z.
Referenced by workbench::prepass::frag_opaque(), and normal_encode().
Definition at line 39 of file workbench_world_light.bsl.hh.
References clamp(), fast_rcp(), NL, w(), and wrapped_lighting().
Referenced by get_world_lighting(), and wrapped_lighting().