MetalPizzaCat / MetalPizzaCat/EngineSFML
C++ doesn't like shaders stores in objects
- Dominant language
- HTML
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
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);`
Contributor guide
No contributing guide indexed for this repository
Research direction
No files, tests, or concrete entry points are named. Start by locating ActorBased/CActor and the rendering code around sf::Shader, then reproduce the object-member and external-shader examples; the issue needs an agreed design and acceptance criteria before completion can be verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100