Back to Browse

Calculating Normals in the Shader - GameMaker Tutorial

1.5K views
Jan 7, 2023
11:20

Ever wished you could calculate a face normal in the shader itself? It's quick, easy, and in some ways it's less work than passing them to the shader as a vertex attribute! Github repository: https://github.com/DragoniteSpam-GameMaker-Tutorials/3DTutorial57ShaderNormals Shader derivatives: https://youtu.be/V81cUdlTPAU Shader playlist: https://www.youtube.com/playlist?list=PL_hT--4HOvrdkihto8Xu7hhp1-5Gj8zsa GameMaker 3D playlist: https://www.youtube.com/playlist?list=PL_hT--4HOvrcML9uqHe4fwBVTm650Vy3V GameMaker Studio 2 playlist: https://www.youtube.com/playlist?list=PL_hT--4HOvrdAGC6YHCqn_VR69GlR_rQw 0:00 Introduction 0:56 Limitations 2:08 We're going to use shader derivatives 2:23 Our bog-standard 3D scene without a normal attribute 3:41 Calculating normals with shader derivatives 10:29 The end #GameMaker #GameMakerShaders #GameMakerNormals - - - - - I've now made that Patreon: https://www.patreon.com/wizardragon That promised social media link spam. https://twitter.com/DragoniteSpam Transition / idle music is by my old friend Kamex: https://www.youtube.com/user/GreatGabite/about Rate, comment, subscribe, watch more, enjoy!

Download

0 formats

No download links available.

Calculating Normals in the Shader - GameMaker Tutorial | NatokHD