Skip to content

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.

ReturnsSignatureSummary
CircleShaderPasscreate(float radius, float centerX, float centerY) factoryCreates a circular mask of radius centered on centerX, centerY, in the coordinates you draw in.
CircleShaderPass(float radius, float centerX, float centerY) protectedCreates the pass, for a subclass.

ReturnsSignatureSummary
voidbind(ShaderPassContext context)Binds the circle shader on the texture of the previous result.
voidunbind()Unbinds the circle shader.
Inherited from IShaderPass (2)

expansion · reach

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.

void bind(ShaderPassContext context)

Binds the circle shader on the texture of the previous result.

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

Report a problem with this page