Shader Uniform Arrays - GameMaker Tutorial
You can pass arrays of uniforms to shaders. It's not 100% what you might expect, but it is pretty simple once you know what you have to do. Arrays of uniforms are very useful when it comes to doing things like enabling multiple 3D lights at the same time.
I did this demo in GLSL ES, but uniform arrays work the same way in HLSL.
Defining functions in shaders: https://youtu.be/BJHWF1cfZKU Using macros in shaders: https://youtu.be/yp0EhCdITo4
The code: https://github.com/DragoniteSpam-GameMaker-Tutorials/TutorialShaderUniformArrays
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
#GameMaker #GameMakerShaders #GameMakerShaderUniforms
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! ... https://www.youtube.com/watch?v=8RoHrQbIv0A
67699376 Bytes