point-state
GPU-accelerated rendering > GPU state

Prev:triangle-state
Next:line-state


Vocabulary
gpu.state

Class description
The point-state controls how points are drawn.
The size slot contains either a float value specifying a constant pixel radius for all points drawn, or f, in which case the vertex shader determines the size of each point independently.
The sprite-origin slot contains either origin-lower-left or origin-upper-left, and determines whether the vertical point sprite coordinates fed to the fragment shader start at zero in the bottom corner and increase upward or start at zero in the upper corner and increase downward.
If multisampling is enabled in the multisample-state, the fade-threshold slot specifies a pixel width at which the multisampling implementation may fade the alpha component of point fragments.


See also
<point-state>, get-point-state

Definition


Methods