Class MultiInstancePostProcessor<I extends DynamicShaderFxInstance>
java.lang.Object
team.lodestar.lodestone.systems.postprocess.PostProcessor
team.lodestar.lodestone.systems.postprocess.MultiInstancePostProcessor<I>
public abstract class MultiInstancePostProcessor<I extends DynamicShaderFxInstance>
extends PostProcessor
-
Field Summary
Fields inherited from class team.lodestar.lodestone.systems.postprocess.PostProcessor
COMMON_UNIFORMS, effects, MC, postChain, time, viewModelMatrix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFxInstance(I instance) Add a fx instancevoidbeforeProcess(org.joml.Matrix4f viewModelMatrix) Set uniforms and bind textures hereprotected abstract intTHIS VALUE SHOULD NOT CHANGE!!!com.google.common.collect.ImmutableList<DynamicShaderFxInstance> protected abstract intTHIS VALUE SHOULD NOT CHANGE!!!voidinit()protected voidsetDataBufferUniform(net.minecraft.client.renderer.EffectInstance effectInstance, String bufferName, String countName) Methods inherited from class team.lodestar.lodestone.systems.postprocess.PostProcessor
afterProcess, applyPostProcess, copyDepthBuffer, getPostChainLocation, isActive, loadPostChain, resize, setActive
-
Constructor Details
-
MultiInstancePostProcessor
public MultiInstancePostProcessor()
-
-
Method Details
-
getMaxInstances
protected abstract int getMaxInstances()THIS VALUE SHOULD NOT CHANGE!!!- Returns:
- max fx instance count
-
getDataSizePerInstance
protected abstract int getDataSizePerInstance()THIS VALUE SHOULD NOT CHANGE!!!- Returns:
- the size of data (how many floats) it takes for passing one fx instance to the shader
-
init
public void init()- Overrides:
initin classPostProcessor
-
addFxInstance
Add a fx instance- Returns:
- the instance got added or null if the amount of instances has reached the max
-
beforeProcess
public void beforeProcess(org.joml.Matrix4f viewModelMatrix) Description copied from class:PostProcessorSet uniforms and bind textures here- Specified by:
beforeProcessin classPostProcessor
-
setDataBufferUniform
-
getInstances
-