Class DynamicShaderFxInstance

java.lang.Object
team.lodestar.lodestone.systems.postprocess.DynamicShaderFxInstance

public abstract class DynamicShaderFxInstance extends Object
  • Constructor Details

    • DynamicShaderFxInstance

      public DynamicShaderFxInstance()
  • Method Details

    • update

      public void update(double deltaTime)
      Called every frame (before the effect is rendered)
    • writeDataToBuffer

      public abstract void writeDataToBuffer(BiConsumer<Integer,Float> writer)
      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)