Class PostProcessor
java.lang.Object
team.lodestar.lodestone.modules.rendering.postprocess.PostProcessor
- Direct Known Subclasses:
BloomPostProcessor,MultiInstancePostProcessor,PhysicallyBasedBloomPostProcessor
Abstract world space post-process pass.
If your shader needs the world space depth buffer, add a target called "depthMain" for it to automatically
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.client.renderer.EffectInstance[]protected net.minecraft.client.renderer.PostChainprotected doublestatic org.joml.Matrix4fBeing updated every frame before calling applyPostProcess() by PostProcessHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidUnbind texturesvoidabstract voidbeforeProcess(org.joml.Matrix4f viewModelMatrix) Set uniforms and bind textures herevoidabstract net.minecraft.resources.ResourceLocationExample: "octus:foo" points to octus:shaders/post/foo.jsonvoidinit()final booleanisActive()final voidLoad or reload the shadervoidresize(int width, int height) voidsetActive(boolean active)
-
Field Details
-
viewModelMatrix
public static org.joml.Matrix4f viewModelMatrixBeing updated every frame before calling applyPostProcess() by PostProcessHandler -
postChain
protected net.minecraft.client.renderer.PostChain postChain -
effects
protected net.minecraft.client.renderer.EffectInstance[] effects -
time
protected double time
-
-
Constructor Details
-
PostProcessor
public PostProcessor()
-
-
Method Details
-
getPostChainLocation
public abstract net.minecraft.resources.ResourceLocation getPostChainLocation()Example: "octus:foo" points to octus:shaders/post/foo.json -
init
public void init() -
loadPostChain
public final void loadPostChain()Load or reload the shader -
copyDepthBuffer
public void copyDepthBuffer() -
resize
public void resize(int width, int height) -
applyPostProcess
public void applyPostProcess() -
beforeProcess
public abstract void beforeProcess(org.joml.Matrix4f viewModelMatrix) Set uniforms and bind textures here -
afterProcess
public abstract void afterProcess()Unbind textures -
setActive
public void setActive(boolean active) -
isActive
public final boolean isActive()
-