Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Wormhole Shader with Inward Movement Effect #2131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ragerin
Copy link

@ragerin ragerin commented Jul 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant