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:
parent
5ffa3b0d1e
commit
1b4f55804c
6 changed files with 29 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue