Interface ShaderTextureSource
- All Known Implementing Classes:
FramebufferSource,LocationSource
Source for shader textures. This allows resource location textures as well as other special types.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContext for applying shader textures.static enumTypes of post textures that can be used. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ShaderTextureSource> static final ShaderTextureSource.Contextstatic final com.mojang.serialization.Codec<ShaderTextureSource.Type> -
Method Summary
Modifier and TypeMethodDescriptionintgetId(ShaderTextureSource.Context context) Retrieves the id of this texture based on context.getType()
-
Field Details
-
TYPE_CODEC
-
CODEC
-
GLOBAL_CONTEXT
-
-
Method Details
-
getId
Retrieves the id of this texture based on context.- Parameters:
context- The context to use- Returns:
- The id of the texture to bind
-
getType
ShaderTextureSource.Type getType()- Returns:
- The type of shader texture this is
-