Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@DMGregory I've already confirmed that it works with radians and not degrees. My code is currently working, but it only works if I convert the degrees to radians. Not sure if the documentation is wrong or what.
I just figured out that if I align something to the grid. Using the align to buttons. It snaps correctly to the grid and then can be translated correctly. I have no idea why clicking the align buttons are required though. Thankfully, I can just snap to vertex after this to make things go a lot quicker.
@Fattie I have my own game engine. imgur.com/a/3M8yBFp The two brush volumes to the right are animated, and yes that's minecraft textures for debugging. I already have billboarding systems and stuff, so I already know how to do everything required for this lighting. I don't believe in paying royalities. Also what you linked appears to be for a bloom shader, which has nothing to do with this. I have a bloom shader in my engine already, and it's nothing like this.