CircleShaderPass
class CircleShaderPass
Implements: IShaderPass
Package: dev.joid.lib.shader.pipeline.pass · Module: core · Source: CircleShaderPass.java
Keeps only the disc of the previous result, with a smooth edge.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
CircleShaderPass | create(float radius, float centerX, float centerY) factory | Creates a circular mask of radius centered on centerX, centerY, in the coordinates you draw in. |
| CircleShaderPass(float radius, float centerX, float centerY) protected | Creates the pass, for a subclass. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | bind(ShaderPassContext context) | Binds the circle shader on the texture of the previous result. |
void | unbind() | Unbinds the circle shader. |
Inherited from IShaderPass (2)
Creation details
Section titled “Creation details”create
Section titled “create”CircleShaderPass create(float radius, float centerX, float centerY) factory
Creates a circular mask of radius centered on centerX, centerY, in the coordinates you draw in.
CircleShaderPass
Section titled “CircleShaderPass”CircleShaderPass(float radius, float centerX, float centerY) protected
Creates the pass, for a subclass.
Method details
Section titled “Method details”void bind(ShaderPassContext context)
Binds the circle shader on the texture of the previous result.
unbind
Section titled “unbind”void unbind()
Unbinds the circle shader.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
