Fragment Shader Lighting - 3D Lighting Shaders in GameMaker

Опубликовано: 29 Сентябрь 2024
на канале: DragoniteSpam
2,637
60

So 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!

Here's the code:
https://github.com/DragoniteSpam-Game...

GameMaker 3D playlist:
   • 3D in Game Maker Studio 2  
GameMaker Studio 2 playlist:
   • Game Maker Studio 2 - General Tutorials  

#GameMaker3D
#GameMaker3DLight
#GameMaker3DShaders
- - - - -
I've now made that Patreon:
  / wizardragon  
That promised social media link spam.
  / dragonitespam  
Transition / idle music is by my old friend Kamex:
   / greatgabite  

Rate, comment, subscribe, watch more, enjoy!