Proper way to encapsulate a Shader into different modules
- by y7haar
I am planning to build a Shader system which can be accessed through different components/modules in C++. Each component has its own functionality like transform-relevated stuff (handle the MVP matrix, ...), texture handler, light calculation, etc...
So here's an example:
I would like to display an object which has a texture and a toon shading…