Class CircleProcessor

java.lang.Object
icyllis.arc3d.granite.GeometryStep
icyllis.arc3d.granite.geom.CircleProcessor

public class CircleProcessor extends GeometryStep
The output of this effect is a modulation of the input color and coverage for a circle. It operates in a space normalized by the circle radius (outer radius in the case of a stroke) with origin at the circle center. Three vertex/instance attributes are used:
  • vec2 : position in local space of the bounding geometry vertices
  • vec4 : (p.xy, outerRad, innerRad) p is the position in the normalized local space. outerRad is the outerRadius in local space. innerRad is the innerRadius in normalized local space (ignored if not stroking).
  • vec4 : color
Additional clip planes are supported for rendering circular arcs. The additional planes are either intersected or unioned together. Up to three planes are supported (an initial plane, a plane intersected with the initial plane, and a plane unioned with the first two). Only two are useful for any given arc, but having all three in one instance allows combining different types of arcs. Round caps for stroking are allowed as well. The caps are specified as two circle center points in the same space as p.xy.