13#include "gpu_shader_codegen_lib.glsl"
16#pragma runtime_generated
19#define CLOSURE_DEFAULT \
172 ClosureThinRefraction )
182 ClosureTransparency )
188 ClosureVolumeScatter )
194 ClosureVolumeAbsorption )
225 ClosureVolumeScatter ,
226 ClosureVolumeAbsorption ,
459template<
bool use_diffuse>
@ OBJECT_ACTIVE_EDIT_MODE
float4 node_attribute_light_impl(KernelGlobals &kg, const int light_index, uint attr_hash)
void output_aov(KernelGlobals &kg, int2 texel, float4 color, float value, uint hash, float holdout, eObjectInfoFlag ob_flag)
float4 attr_load_uniform(KernelGlobals &kg, const ShadingData &sd, float4, const uint attr_hash)
float attr_load_temperature_post(KernelGlobals &kg, float attr)
void raycast_eval(KernelGlobals &kg, const ShadingData &sd, float3 position, float3 direction, float max_distance, bool self_only, bool &is_hit, bool &self_hit, float &hit_distance, float3 &hit_position, float3 &hit_normal)
void scene_time_uniforms(KernelGlobals &kg, float &seconds, float &frame)
float texture_lod_bias_get(KernelGlobals &kg)
void node_shadow_raycast_impl(KernelGlobals &kg, const ShadingData &sd, const int light_index, float3 position, float softness, float4 &color)
Closure closure_mix(Closure, Closure, float)
bool node_attribute_light_is_sun_impl(KernelGlobals &kg, const int light_index)
bool node_attribute_light_is_point_impl(KernelGlobals &kg, const int light_index)
float derivative_scale_get(KernelGlobals &kg)
Closure closure_add(Closure, Closure)
bool node_attribute_light_is_spot_impl(KernelGlobals &kg, const int light_index)
void node_light_info_impl(KernelGlobals &kg, const int light_index, float4 &color, float &power, float3 &position)
float3 brdf_lut(KernelGlobals &kg, float3 F0, float3 F90, float cos_theta, float roughness, bool do_multiscatter)
float ambient_occlusion_eval(const KernelGlobals &kg, const ShadingData &sd, float3 normal, float max_distance, const float inverted, const float sample_count)
void node_light_evaluation_impl(KernelGlobals &kg, const ShadingData &sd, int light_index, float3 position, float3 normal, float roughness, float &factor)
float3 F_brdf_multi_scatter(float3 f0, float3 f90, T lut)
void node_light_evaluation_common_impl(KernelGlobals &kg, int light_index, float3 position, float3 &direction, float &distance, float &mask)
void bsdf_lut(KernelGlobals &kg, float3 F0, float3 F90, float3 transmission_tint, float cos_theta, float roughness, float ior, bool do_multiscatter, float3 &reflectance, float3 &transmittance)
bool node_attribute_light_is_area_impl(KernelGlobals &kg, const int light_index)
void brdf_f82_tint_lut(KernelGlobals &kg, float3 F0, float3 F82, float cos_theta, float roughness, bool do_multiscatter, float3 &reflectance)
void node_light_accumulation_impl(KernelGlobals &kg, ShadingData &sd, const int light_index, float3 diffuse_light, float3 diffuse_color, float3 glossy_light, float3 glossy_color, float3 transmission_light, float3 transmission_color, float weight, Closure &result)
float3 F_brdf_single_scatter(float3 f0, float3 f90, T lut)
float4 attr_load_color_post(KernelGlobals &kg, float4 attr)
float4 node_attribute_layer_impl(KernelGlobals &kg, const uint attr_hash)
float F0_from_ior(float eta)
Coordinates coordinate_impl(KernelGlobals &kg, const ShadingData &sd, float3 P, float3 N)
Closure closure_eval(KernelGlobals &kg, ShadingData &sd, ClosureDiffuse diffuse)
float4 closure_to_rgba(KernelGlobals &kg, ShadingData &sd, Closure cl)
float f0_from_ior(float eta)
float node_attribute_light_cutoff_distance_impl(KernelGlobals &kg, const int light_index)
VecBase< float, 4 > float4
VecBase< float, 3 > float3
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ViewMatrices camera_matrices_get(const ShadingData &)
ViewMatrices view_matrices_get(const ShadingData &)
ObjectMatrices light_matrices_get(int)
ObjectMatrices object_matrices_get(const ShadingData &)
ObjectInfos object_infos_get(const ShadingData &)
enum eObjectInfoFlag flag
packed_float3 barycentric_dists
packed_float2 barycentric_coords
packed_float3 point_position