71 float wp_delta = 0.0f;
72 float bc_delta = 0.0f;
73#if defined(GPU_FRAGMENT_SHADER) || defined(GLSL_CPP_STUBS)
77 float rate_of_change = wp_delta *
safe_rcp(bc_delta);
149 sd.
N = (front_face) ? sd.
N : -sd.
N;
150 sd.
Ni = (front_face) ? sd.
Ni : -sd.
Ni;
151#if defined(GPU_FRAGMENT_SHADER) || defined(GLSL_CPP_STUBS)
165 interp.resource_id_raw = resource_id_raw;
172 alpha =
saturate(alpha * (256.0f / 255.0f));
180 if (view.is_directional) {
181 return float3(0.0f, 0.0f, -view_position.
z - view.clip_near);
183 return view_position;
191 if (clip_distance_inv == 0.0f) {
196 return view_position * clip_distance_inv;
ccl_device_inline float cos_theta(const float3 w)
ccl_device_inline float sin_theta(const float3 w)
#define SHADOW_RENDER_VIEW_BUF_SLOT
float3 shadow_position_vector_get(float3 view_position, ShadowRenderView view)
float3 shadow_clip_vector_get(float3 view_position, float clip_distance_inv)
#define storage(slot, qualifiers)
VecBase< float, D > normalize(VecOp< float, D >) RET
float distance(float, float) RET
VecBase< float, 3 > cross(VecOp< float, 3 >, VecOp< float, 3 >) RET
float length(VecOp< float, D >) RET
float sin_from_cos(float c)
VecT safe_normalize(VecT vector)
ccl_device_inline float interp(const float a, const float b, const float t)
float evaluate_gaussian(float2 x_min_mu, float opacity)
ShadingData init_globals(const eevee::PipelineConstants &pipe, const eevee::Uniform &uni, const VertOutCommon &interp, const ViewMatrices view, bool front_face, float4 fragment_co)
float3 gsplat_amend_transmittance(const VertOutGSplat &gsplat_interp, float3 transmittance)
void init_globals_mesh(const VertOutCommon &interp, ShadingData &sd, float3 barycentric_co)
void init_globals_pointcloud(const VertOutPointcloud &ptcloud_interp, ShadingData &sd)
void init_interface(VertOutCommon &interp, uint resource_id_raw)
void init_globals_curves(const VertOutCommon &interp, const VertOutCurves &curve_interp, ShadingData &sd, const ViewMatrices view)
packed_float3 barycentric_dists
packed_float2 barycentric_coords
packed_float3 point_position
float3 world_incident_vector(float3 P) const
ClipPlaneData & clip_plane
const ShadowRenderView(& render_view_buf)[SHADOW_VIEW_MAX]
CCL_NAMESPACE_BEGIN struct Window V