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.Context -
Method Summary
Modifier and TypeMethodDescription@Nullable TextureFilterfilter()intgetId(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
nullfor the texture default
-
type
ShaderTextureSource.Type type()- Returns:
- The type of shader texture this is
-