Back to Browse

Shader Uniforms // Zig Game Engine Series

239 views
Apr 4, 2026
27:27

Welcome back to the Game Engine Series! In this video we learn how Shader uniforms work and how to use them in our game engine. I also show a cool optimization to precompute all the uniform locations at the start so we never have to look them up during runtime. 📚 Topics Covered: - How shader uniforms work - How to use shader uniforms - Writing a generic Zig function to handle all uniform types - Precomputing shader locations Come watch me stream engine development live on Twitch https://www.twitch.tv/pokelego_dev 🔗 Links: - Runtime Repo ► https://github.com/Zephyr-Engine/zephyr-runtime - Sandbox Repo ► https://github.com/Zephyr-Engine/zephyr-sandbox - Discord ► https://discord.gg/88GW9pvq2r - X ► https://x.com/pokelego_dev - Previous Video ► https://youtu.be/O6LQg4wgnGM - Next Video ► https://youtu.be/zTBxlMyDdyY 🖥️ Equipment: - Shure MV6 Microphone: https://amzn.to/49rRfre - Logitech G903: https://amzn.to/4pxNera - 32" 4K Monitor: https://amzn.to/4jDLbka - Lightbar: https://amzn.to/49xTeKA - Elgato Camlink: https://amzn.to/4jU106B - 1TB SSD: https://amzn.to/4jxPFsp - Camera Tripod: https://amzn.to/3Ldr2Vs - Camera SSD: https://amzn.to/3NDKpYk 0:00 Intro 2:07 Adding Math Library 6:44 Improving Buffer Code 14:20 Fetching Uniform Locations 20:20 Comptime Set Uniform Function 26:27 Outro Attributions: https://www.flaticon.com/free-icons/graphic-design Music I use: Bensound License code: 8LDV4HESGZFJUL96 Artist: : Lunar Years #GameDev #Zig #GameEngine #Programming

Download

0 formats

No download links available.

Shader Uniforms // Zig Game Engine Series | NatokHD