-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededinvalidThis doesn't seem rightThis doesn't seem right
Description
Shaders should be stored outside of the object that will use them
e.g. of creating error
class ActorBased:CActor { public: sf::Shader shaderName; }
but this does not
sf::Shader testShader; testShader.loadFromFile(pathVert", pathFrag); testShader.setUniform("texture", this->m_sprite.getTexture()); window.draw(m_sprite, &testShader);
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededinvalidThis doesn't seem rightThis doesn't seem right