47 draw::ID id = res_id.get(inst_index);
49 uint resource_id =
id.resource_id<1>();
51 view_id =
id.view_id<64>();
52 resource_id =
id.resource_id<64>();
59 shadow_iface.shadow_view_id = int(view_id);
61 out_viewport = int(
shadow.render_view_buf[view_id].viewport_index);
77 curve_interp.binormal = pt.
curve_B;
78 curve_interp.tangent = pt.
curve_T;
80 curve_interp.radius = ws_pt.
radius;
85 curve_interp.strand_id = ws_pt.
curve_id;
93 geo_vel.local_position_deltas(pos, vert_idx, prv, nxt, resource_id);
99 geo_vel.vertex_velocity(prv, pos, nxt, motion.prev, motion.next, resource_id, obj.
model);
113 curves.drw_curves.is_point_attribute,
125 clip_interp.clip_distance =
dot(clip_srt.clip_plane.plane,
float4(
interp.P, 1.0f));
131 ShadowRenderView view =
shadow.render_view_buf[view_id];
ShadingData init_globals(const eevee::PipelineConstants &pipe, const eevee::Uniform &uni, const VertOutCommon &interp, const ViewMatrices view, bool front_face, float4 fragment_co)
void geom_curves(KernelGlobals &kg, const PipelineConstants &pipe, const draw::Curves &curves, const Uniform &uni, const int inst_index, const draw::View &views, const draw::Model &models, const draw::Infos &infos, const draw::Resource &res_id, GeomShadow &shadow, const ClipPlane &clip_srt, const GeometryVelocity &geo_vel, VertOutCommon &interp, VertOutCurves &curve_interp, VertOutShadow &shadow_iface, VertOutShadowClipping &shadow_clip, VertOutClipPlane &clip_interp, VertOutVelocity &motion, const int vert_id, float4 &out_position, int &out_viewport)