Shader effects should be controlled by components::Animation #103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In raycaster.cpp I have this function:
And in scene.cpp I have this code:
This caused me a problem because for the shader to work u_resolution has to be set, but I only set it in the raycaster or in guecs::Effect. The shaders only worked if I had them on a GUI element.
Really, the animation knows the size of the image, and when the effect is supposed to play, so that should be the thing that controls the shader.