Over the past several weeks, the community has been helping me to get shaders integrated with my project. In the spirit of trying to produce as much or more than I consume, I’ve put together a simple tutorial demonstrating how to use a lighting shader within MonoGame.
Special thanks to kosmonautgames for bearing with me when I initially came with no knowledge. The shader he provided is the basis for this tutorial.
oh yeah and by the way I would save the transformation matrix for each object in the object itself and only update it when the object moves - for example walls etc. never do.
Especially if you have more interesting world matrices with scale * rotationx *rotationy * rotationz * translation and a thousand objects it becomes a tiny bit expensive to do that per frame per object.
Just little things, really just nitpicking here, don’t hate me