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
-
Method Summary
Modifier and TypeMethodDescription@Nullable TextureFilter
filter()
int
getId
(ShaderTextureSource.Context context) Retrieves the id of this texture based on context.type()
-
Field Details
-
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
-
filter
- Returns:
- The filtering this texture should use or
null
for the texture default
-
type
ShaderTextureSource.Type type()- Returns:
- The type of shader texture this is
-