EmptyEpsilon icon indicating copy to clipboard operation
EmptyEpsilon copied to clipboard

Add Wormhole Shader with Inward Movement Effect

Open ragerin opened this issue 1 year ago • 0 comments

Summary

This PR introduces a new shader for the awesome wormhole graphic created by @aBlueShadow. The shader adds minor movement to the texture, simulating an inward pulling effect, as seen below.

wormhole-shader

Changes Made

  • Shader file:
    • Created a new shader file (wormhole.shader) specifically for the wormhole graphic.
    • Implemented the logic to animate the texture with a pull-inward effect.
  • ShaderRegistry:
    • Added a time uniform to the ShaderRegistry to support the new shader's animation needs.
  • Wormhole SpaceObject:
    • Included the engine header to enable engine->getElapsedTime() for the uniform.

ragerin avatar Jul 26 '24 14:07 ragerin