Skip to content

ShaderStage

enum ShaderStage
Package: dev.joid.lib.bridge.render.shader.source · Module: core · Source: ShaderStage.java

The two programmable stages of a JOID shader.

ShaderSource.from and ShaderSource.read take the stage, so that JOID checks the declarations that the stage allows.

ValueSummary
VERTEXThe stage that places each vertex: it reads the built-in attributes aPosition, aTexCoord, aColor and aNormal, writes gl_Position, and declares out variables for the fragment stage.
FRAGMENTThe stage that colors each pixel: it declares as in the out variables of the vertex stage and writes its color to fragColor.

VERTEX

The stage that places each vertex: it reads the built-in attributes aPosition, aTexCoord, aColor and aNormal, writes gl_Position, and declares out variables for the fragment stage.

FRAGMENT

The stage that colors each pixel: it declares as in the out variables of the vertex stage and writes its color to fragColor.


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