dragonitespam-gamemaker-tutorials / 3dtutorial22fragmentshaderlighting Goto Github PK
View Code? Open in Web Editor NEWSo far, all of my shader code has been written in the vertex shader. However, with just a few extra steps you can also do it in the fragment shader - and since each fragment's light can be calculated individually. You get a higher degree of precision overall by doing this, and smooth shading in particular will look much better!