Interface CoreShaderRegistrationCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Called when core shaders (shader programs loaded from
assets/<namespace>/shaders/core
)
are loaded to register custom modded shaders.
Fabric API also modifies the #moj_import
feature in core shaders to accept
arbitrary namespaces for shaders loaded using the <filename.glsl>
syntax.
For example, #moj_import <my_mod:test.glsl>
would import the shader from
assets/my_mod/shaders/include/test.glsl
.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A context object used to create and register core shader programs. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers core shaders using the registration context.
-
Field Details
-
EVENT
-
-
Method Details
-
registerShaders
Registers core shaders using the registration context.- Parameters:
context
- the registration context- Throws:
IOException
-