Class DynamicShaderFxInstance
java.lang.Object
team.lodestar.lodestone.systems.postprocess.DynamicShaderFxInstance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal floatgetTime()final booleanfinal voidremove()voidupdate(double deltaTime) Called every frame (before the effect is rendered)abstract voidwriteDataToBuffer(BiConsumer<Integer, Float> writer) Write this fx instance's data to the texture buffer to upload them to the shader
-
Constructor Details
-
DynamicShaderFxInstance
public DynamicShaderFxInstance()
-
-
Method Details
-
update
public void update(double deltaTime) Called every frame (before the effect is rendered) -
writeDataToBuffer
Write this fx instance's data to the texture buffer to upload them to the shader- Parameters:
writer- for writing data to the texture buffer
-
remove
public final void remove() -
isRemoved
public final boolean isRemoved() -
getTime
public final float getTime()- Returns:
- the time since update() was called for the first time (in seconds)
-