30 const int index = int(global_id.x);
31 if (
index >=
int(surfels.capture_info_buf.surfel_len)) {
51 ctx.
ray_count = uni.uniform_buf.shadow.ray_count;
54 ClosureUndetermined cl_reflect;
55 cl_reflect.N =
surfel.normal;
58 lights.eval_reflection(ctx, 1.0f);
60 if (surfels.capture_info_buf.capture_indirect) {
61 surfels.surfel_buf[
index].radiance_direct.front.rgb += ctx.
stack.cl[0].light_shadowed *
65 ClosureUndetermined cl_transmit;
66 cl_transmit.N = -
surfel.normal;
71 lights.eval_reflection(ctx, 1.0f);
73 if (surfels.capture_info_buf.capture_indirect) {
74 surfels.surfel_buf[
index].radiance_direct.back.rgb += ctx.
stack.cl[0].light_shadowed *
83 .light_iter_force_no_culling =
true,
86 .shadow_random =
false,
89 .light_closure_eval_count_reflect = 1,
90 .light_closure_eval_count_transmit = 0,
91 .light_closure_count_reflect = 1,
92 .light_closure_count_transmit = 1,
ClosureLight closure_light_new(const UtilityTexture &util_tx, ClosureUndetermined cl, float3 V, Thickness thickness)
#define SURFEL_GROUP_SIZE
PipelineCompute eevee_surfel_light(eevee::surfel::eval_light, eevee::surfel::EvalLight{ .light_iter_force_no_culling=true, }, eevee::ShadowRenderConstants{ .shadow_random=false, }, eevee::LightEvalConstants{ .light_closure_eval_count_reflect=1,.light_closure_eval_count_transmit=0,.light_closure_count_reflect=1,.light_closure_count_transmit=1, })
#define compilation_constant
#define global_invocation_id
@ CLOSURE_BSDF_DIFFUSE_ID
void eval_light(EvalLight &, LightEvalIterator &lights, const Uniform &uni, const UtilityTexture &util_tx, SurfelData &surfels, const uint3 global_id)
ClosureStack< is_transmission > stack
float terminator_normal_offset
float terminator_geometry_offset
bool light_iter_force_no_culling
CCL_NAMESPACE_BEGIN struct Window V