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
Modifier and TypeInterfaceDescriptionstatic interface
Context for applying shader textures.static enum
Types of post textures that can be used. -
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ShaderTextureSource> static final ShaderTextureSource.Context
static final com.mojang.serialization.Codec
<ShaderTextureSource.Type> -
Method Summary
Modifier and TypeMethodDescriptionint
getId
(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
-