Interface ShaderEmitter.Inputs
- Enclosing class:
ShaderEmitter
public static interface ShaderEmitter.Inputs
Supplies the backend's spelling of the inputs a graph reads.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the expression for a built-in input such asworldPos, or null when the stage being emitted does not have it.Returns the expression sampling custom textureslotatuv, or null when the stage cannot sample.uniform(int slot) Returns the expression for slotslotof the material's uniform array, a four float value of which the graph reads the firstcomponents.
-
Method Details
-
builtin
-
uniform
Returns the expression for slot
slotof the material's uniform array, a four float value of which the graph reads the firstcomponents.Parameters
slot: the uniform slot
Returns
the expression of the whole vec4
-
sample
-