ShaderStage
enum ShaderStage
Package: dev.joid.lib.bridge.render.shader.source · Module: core · Source: ShaderStage.java
The two programmable stages of a JOID shader.
Description
Section titled “Description”ShaderSource.from and ShaderSource.read take the stage, so that JOID checks the declarations that the stage allows.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
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. |
Value details
Section titled “Value details”VERTEX
Section titled “VERTEX”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
Section titled “FRAGMENT”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
