The flame shader now only turns on when facing an enemy. Next is tagging enemies with specific shaders to apply at a specific time.

This commit is contained in:
Zed A. Shaw 2025-04-16 00:02:27 -04:00
parent 5ffa3b0d1e
commit 1b4f55804c
6 changed files with 29 additions and 13 deletions

View file

@ -84,7 +84,7 @@ int main(int argc, char *argv[]) {
sf::Vector2f scale{u_resolution.x / bounds.size.x,
u_resolution.y / bounds.size.y};
sprite_texture.sprite->setScale(scale);
shader.setUniform("texture", sf::Shader::CurrentTexture);
shader.setUniform("source", sf::Shader::CurrentTexture);
} else {
rect.setPosition({0,0});
rect.setSize(u_resolution);