Closed lmj01 closed 5 months ago
ex. How i set uniform only for some mesh, like one vertex shader need customer variable, like projection matrix
You can always compute the projection matrix that you need, like so for example:
glm::mat4 projection = glm::perspective(glm::radians(55.0f), (GLfloat)screenResolution.width / (GLfloat)screenResolution.height, 0.1f, 100.0f);
If you want to set the variable, all you have to do is run
configuration.setMat4("projection", projection);
on the ShaderConfiguration that you want to use.
I known, configurable with in scene one, not the single mesh one. And thanks your example demo, i think I known your framework.
What part of the framework are you referring to? It's been like 4 years since I worked on this project. Please provide me with a bit more information.