Game Dev Digest — Issue #91 - Shaders and Math, Oh My!
Tags: gamedev, unity3d, csharp, news
Published: 2021-04-23 12:45:59

---
title:  Game Dev Digest — Issue #91 - Shaders and Math, Oh My!
published: true
date: 2021-04-23 12:45:59 UTC
tags: gamedev,unity,csharp,news
canonical_url: https://gamedevdigest.com/digests/issue-91-shaders-and-math-oh-my.html
series: Game Dev Digest - The Newsletter About Unity Game Dev
---

### Issue #91 - Shaders and Math, Oh My!

*This article was originally published on [GameDevDigest.com](https://gamedevdigest.com/digests/issue-91-shaders-and-math-oh-my.html)*

![Issue #91 - Shaders and Math, Oh My!](https://gamedevdigest.com/assets/social-posts/issue-91.png)

A shader deep dive you never knew you wanted till now! Plus learn some math, test and debug and other cool stuff. Enjoy!

---

[**Run Pong on the GPU with Compute Shaders in Unity**](https://bronsonzgeb.com/index.php/2021/04/17/run-pong-on-the-gpu-with-compute-shaders-in-unity/)  - This article is about adding interactivity and game logic to Compute Shaders. We’ll do this by writing a version of Pong that runs on the GPU through Compute Shaders.
[_Bronson Zgeb_](https://bronsonzgeb.com/index.php/2021/04/17/run-pong-on-the-gpu-with-compute-shaders-in-unity/)

[**ShaderQuest Part 5: Shader code syntax & Colors**](https://halisavakis.com/shaderquest-part-5-shader-code-syntax-colors/)  - The first part is going to cover some stuff around the syntax of shader code languages while in the second part we’ll take a look at how colors work in the context of shaders. In the second part we’ll finally start modifying a shader and seeing stuff changing on our objects!
[_halisavakis.com_](https://halisavakis.com/shaderquest-part-5-shader-code-syntax-colors/)

[**Holofoil Card Shader Breakdown**](https://www.cyanilux.com/tutorials/holofoil-card-shader-breakdown/)  - Lately I’ve been experimenting a bit with holographic foil shader effects.
[_Cyanilux_](https://www.cyanilux.com/tutorials/holofoil-card-shader-breakdown/)

[**Supermassive black hole tutorial**](https://kelvinvanhoorn.wordpress.com/2021/04/20/supermassive-black-hole-tutorial/)  - Due to the interest in my supermassive black hole (SMBH) shader I’ve decided to write a tutorial on it.
[_Kelvin van Hoorn_](https://kelvinvanhoorn.wordpress.com/2021/04/20/supermassive-black-hole-tutorial/)

[**How to speed up 2D art workflows with 2D PSD Importer**](https://blogs.unity3d.com/2021/04/20/how-to-speed-up-2d-art-workflows-with-2d-psd-importer/)  - 2D games are made from hundreds or even thousands of sprites. The 2D team at Unity is continuously working to improve round-tripping workflows, including the steps needed to import, and iterate on, assets. A major improvement is the 2D PSD Importer package. Read on to learn how to import Photoshop PSB files into your project and explore real use cases that can boost your productivity when working with 2D assets. _[Check out the [video](https://www.youtube.com/watch?v=b2bIh8WPsi4) as well]_
[_Unity_](https://blogs.unity3d.com/2021/04/20/how-to-speed-up-2d-art-workflows-with-2d-psd-importer/)

[**The Simplest Trailer to Make For Your Steam Page**](https://www.gamasutra.com/blogs/DerekLieu/20210419/380033/The_Simplest_Trailer_to_Make_For_Your_Steam_Page.php?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+GamasutraFeatureArticles+%28Gamasutra+Feature+Articles%29)  - If you're a first time or hobbyist developer, Chris Zukowski from HowToMarketAGame.com recommends you make your Steam page as soon as possible. This is backed up by an official recommendation by Valve. _[For more, read [I made a trailer that got 7K organic views and 1K wishlist in 3 days. Just wanted to share my techniques!](https://www.reddit.com/r/gamedev/comments/mthobe/i_made_a_trailer_that_got_7k_organic_views_and_1k/) by Rotorist, and [When demos can radically expand your game's discoverability](https://www.gamasutra.com/blogs/SimonCarless/20210419/380094/When_demos_can_radically_expand_your_games_discoverability.php) by Simon Carless]_
[_Derek Lieu_](https://www.gamasutra.com/blogs/DerekLieu/20210419/380033/The_Simplest_Trailer_to_Make_For_Your_Steam_Page.php?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+GamasutraFeatureArticles+%28Gamasutra+Feature+Articles%29)

[**How to add subscribers to Mailchimp within your Unity game**](https://coffeebraingames.wordpress.com/2021/04/18/how-to-add-subscribers-to-mailchimp-within-your-unity-game/)  - Mailchimp is one the most recommended mailing list management software/website out there. Thankfully, it has an API and I’m sure there’s a way to access it via C#. I’m writing this article to show you how so you don’t have to suffer like I did.
[_Coffee Brain Games_](https://coffeebraingames.wordpress.com/2021/04/18/how-to-add-subscribers-to-mailchimp-within-your-unity-game/)

[**On-Demand QA Testing with Unity Automated QA**](https://blogs.unity3d.com/2021/04/16/on-demand-qa-testing-with-unity-automated-qa/)  - The Automated QA package enables users to record and playback touch or drag interactions with the UI of a Unity Project and optionally use recordings to drive Unity Tests – in the editor, on an iOS or Android device.
[_Unity_](https://blogs.unity3d.com/2021/04/16/on-demand-qa-testing-with-unity-automated-qa/)

[**NG Unity Versioner**](https://ngtools.tech/uv/)  - Working on tools for the Editor? Not sure if the API you are using is available in latest versions? Use NG Unity Versioner to instantly check API range availability
[_ngtools.tech_](https://twitter.com/_Mikilo_/status/1384477226398220291)

[**Auto compile-time support for Unity Tags**](https://pauliom.medium.com/auto-compile-time-support-for-unity-tags-16b3d9ea83db)  - I think anyone who has used Tags or Colliders in Unity will know that feeling when you are about to write code to utilize a tag and you are not sure of the spelling or case of the tag in question.
[_Paul Marsh_](https://pauliom.medium.com/auto-compile-time-support-for-unity-tags-16b3d9ea83db)

[**Data Persistence in Unity without using PlayerPrefs class**](https://blog.gamedev.tv/data-persistence-in-unity/)  - If you've been using Unity for a while there's a high chance you've already used PlayerPrefs class to store data persistently across different game runs. In this post, I'd like to share with you a different solution.
[_blog.gamedev.tv_](https://blog.gamedev.tv/data-persistence-in-unity/)

[**Game Development for Total Beginners - Free Unity Course**](https://www.freecodecamp.org/news/game-development-for-beginners-unity-course/)  - We just published a 7-hour course on the freeCodeCamp.org YouTube channel that will teach you how to create games using Unity. This is the perfect course for a complete beginner.
[_freecodecamp.org_](https://www.freecodecamp.org/news/game-development-for-beginners-unity-course/)

[**Creating Environments Using Unity's AI-Assisted Creation Tools**](https://80.lv/articles/creating-environments-using-unity-s-ai-assisted-creation-tools/)  - Juuso Voutilainen speaks with us about his Ai-assisted Creation Workflow and how Unity ArtEngine has become the backbone of his creative work. _[For more, read [From tiling to styling: Discover the basics of ArtEngine for your animation assets](https://blogs.unity3d.com/2021/04/20/from-tiling-to-styling-discover-the-basics-of-artengine-for-your-animation-assets/) on the Unity blog]_
[_80.lv_](https://80.lv/articles/creating-environments-using-unity-s-ai-assisted-creation-tools/)

[**Unity Future .NET Development Status**](https://forum.unity.com/threads/unity-future-net-development-status.1092205/?utm_source=csharpdigest&amp;utm_medium=email&amp;utm_campaign=359)  - We’ve had a good bit of interest on various forum threads about Unity’s plans for C# and .NET in the future. Microsoft has been pushing the .NET ecosystem in a number of beneficial directions, and we at Unity want to bring those improvements to our users as soon as we can.
[_Unity_](https://forum.unity.com/threads/unity-future-net-development-status.1092205/?utm_source=csharpdigest&amp;utm_medium=email&amp;utm_campaign=359)

[**Unity 2021.2.0 Alpha 14**](https://unity3d.com/unity/alpha/2021.2.0a14)  - Unity 2021.2.0 Alpha 14 has been released.
[_Unity_](https://unity3d.com/unity/alpha/2021.2.0a14)

## Videos

[![How To Use Every Node in Unity Shader Graph](https://gamedevdigest.com/assets/images/c7954da25f8eefd7bc9e39a056810d28.png)](https://www.youtube.com/watch?v=84A1FcQt9v4)
[**How To Use Every Node in Unity Shader Graph**](https://www.youtube.com/watch?v=84A1FcQt9v4)  - Shader Graph ships with over 200 nodes in the base package. With such a vast array of features at your disposal, it's easy to get lost when you're searching for the perfect way to make the shader you have in mind. This video shows every single node in action, complete with examples, explanations of what every input and output does and a few best practices for certain nodes!
[_Daniel Ilett_](https://www.youtube.com/watch?v=84A1FcQt9v4)

[**Unity Shader Graph - Grow Vines | Trees Tutorial**](https://www.youtube.com/watch?v=LKaEMBLIw9s)  - Did you know that you can grow anything with Unity Shader Graph? Like an animation. A shader that can procedurally grow geometry. It's a very practical effect, used to grow vines for example. Or other 3d objects.
[_Gabriel Aguiar Prod._](https://www.youtube.com/watch?v=LKaEMBLIw9s)

[**Everything you need to know about prefabs in Unity | Prefabs Explained ft. Lego Microgame**](https://www.youtube.com/watch?v=EH5epbeX3ek)  - In this detailed breakdown, you will learn everything you need to know about prefabs in Unity! With this 12 minute guide, prefabs will be explained in a step by step process, and the knowledge gained will save you time and headaches as you develop your own games. It will even help you implement better game design!
[_Nicky B_](https://www.youtube.com/watch?v=EH5epbeX3ek)

[**The Basics of Dot Product in Unity URP. Vectors, Angles, and Lighting! | Game Dev Tutorial**](https://www.youtube.com/watch?v=_61tlp2kOow)  - The Dot Product is a useful vector function which has many uses in shaders and gameplay programming. You can use it to calculate lighting, know when a projectile has reached it's apex, or calculate when a creature sees an object. In this video, I'll show you how to use it in various ways!
[_Ned Makes Games_](https://www.youtube.com/watch?v=_61tlp2kOow)

[**Local Multiplayer UI with the Multiplayer Event System - Unity Tutorial**](https://www.youtube.com/watch?v=81GecyuNapg)  - In this video we will use the Multiplayer Event System from the new Input System in Unity to separate the UI for local multiplayer games.
[_samyam_](https://www.youtube.com/watch?v=81GecyuNapg)

[**How To Make A Multiplayer Game In Unity 2021.1 - Syncing Variables**](https://www.youtube.com/watch?v=iQDGLaSI3Cg)  - This Unity Multiplayer tutorial will teach you how to implement Network Variables to sync data between Clients and the Server.
[_Dapper Dino_](https://www.youtube.com/watch?v=iQDGLaSI3Cg)

[**Potion Liquid Wobble Shader Graph - Easy Unity Tutorial**](https://www.youtube.com/watch?v=eIZgPAZx56s)  - In this video we will show you how to create a Potion Liquid Wobble Shader Graph.
[_Binary Lunar_](https://www.youtube.com/watch?v=eIZgPAZx56s)

[**Simple Shader Graphs - 2D & 3D Distortion/Heatwave Effect [Refraction, What Is That?]**](https://www.youtube.com/watch?v=rSiYL04H1jE)  - Check out this very simple yet FUNKY Distortion Shader Graph tutorial with in depth explanation made in Unity 2019 LTS.
[_Seth Funk_](https://www.youtube.com/watch?v=rSiYL04H1jE)

[**Make a Level Editor in 2 MINUTES in Unity! Tiny Tutorial #01**](https://www.youtube.com/watch?v=vDicVihdn4s)  - 6 lines of code for a functioning level editor.
[_Robert Thomson_](https://www.youtube.com/watch?v=vDicVihdn4s)

## Assets

[![Sprint into Spring Sale](https://gamedevdigest.com/assets/images/55885724-07ff-4d53-a33e-b7c0e8316a64.png)](https://assetstore.unity.com/spring-sale?aid=1011l8NVc)
[**Sprint into Spring Sale**](https://assetstore.unity.com/spring-sale?aid=1011l8NVc)  - Save 50%: Sprint into Spring Sale is on now!

500+ of our most popular assets at 50% off. Plus, get an extra 5% off on-sale purchases of $100 or more and 10% off on-sale purchases of $150 or more with coupon code SPRING2021. [Check out the sale](https://assetstore.unity.com/spring-sale?aid=1011l8NVc) now! 

We are also bringing back our popular Daily Deals, one high value asset each day that is available at 70% off.
* Today [Ultimate FPS Weapons Pack](https://assetstore.unity.com/packages/3d/props/guns/ultimate-fps-weapons-pack-64555?aid=1011l8NVc) (Save $210)
* Saturday [Mega Animations Pack](https://assetstore.unity.com/packages/3d/animations/mega-animations-pack-162341?aid=1011l8NVc) (Save $63)
* Sunday [Future Slums (Built-In)](https://assetstore.unity.com/packages/3d/environments/sci-fi/future-slums-built-in-176339?aid=1011l8NVc) (Save $139)
* Monday [Fighter Pack Bundle](https://assetstore.unity.com/packages/3d/animations/fighter-pack-bundle-30804?aid=1011l8NVc) (Save $83)
* Tuesday [Low Poly FPS Pack](https://assetstore.unity.com/packages/3d/props/weapons/low-poly-fps-pack-54947?aid=1011l8NVc) (Save $105)
* Wednesday [Puzzle Match Kit](https://assetstore.unity.com/packages/templates/systems/puzzle-match-kit-100199?aid=1011l8NVc) (Save $139)
* Thursday [Polyquest Worlds Full Pack Vol.1](https://assetstore.unity.com/packages/3d/environments/polyquest-worlds-full-pack-vol-1-74631?aid=1011l8NVc) (Save $209)
* Friday [CCG Kit](https://assetstore.unity.com/packages/templates/systems/ccg-kit-52739?aid=1011l8NVc) (Save $104)
* this is the final week of the sale, don't miss out!
[_Unity_](https://assetstore.unity.com/spring-sale?aid=1011l8NVc) **Affiliate**

[**Demystify for Unity**](https://github.com/needle-tools/demystify)  - High performance understanding for stack traces in Unity
[_needle-tools_](https://github.com/needle-tools/demystify) *Open Source*

[**EcsRx**](https://github.com/EcsRx/ecsrx)  - EcsRx is a reactive take on the common ECS pattern with a well separated design using rx and adhering to IoC and other sensible design patterns.
[_EcsRx_](https://github.com/EcsRx/ecsrx) *Open Source*

[**RightStatsMonitor**](https://github.com/inc8877/RightStatsMonitor)  - Useful tool for displaying FPS with high precision. Very lightweight and fast. GC-free.
[_inc8877_](https://github.com/inc8877/RightStatsMonitor) *Open Source*

[**Timeline-Scene-Clip**](https://github.com/lordubbe/Timeline-Scene-Clip)  - Provides the ability to dynamically load/unload scenes with Timeline using the Scene Clip Track. You can also just snatch the Scene Name Picker, which is a handy attribute to slap on a string, allowing you to pick a scene name so you don't accidentally misspell (or try to load a scene that is not in the build settings)!
[_lordubbe_](https://github.com/lordubbe/Timeline-Scene-Clip) *Open Source*

[**Math-For-Games-using-Unity**](https://github.com/Javilingys/Math-For-Games-using-Unity)  - Mathematics for Computer Games Development using Unity.
[_Javilingys_](https://github.com/Javilingys/Math-For-Games-using-Unity) *Open Source*

[**UI Accessibility Plugin (UAP)**](https://assetstore.unity.com/packages/tools/gui/ui-accessibility-plugin-uap-87935?aid=1011l8NVc)  - _[now free!]_ The UI Accessibility Plugin (UAP) allows you to make your UI accessible to blind and visually impaired players with only a few clicks.
[_MetalPop Games_](https://assetstore.unity.com/packages/tools/gui/ui-accessibility-plugin-uap-87935?aid=1011l8NVc) **Affiliate**

[**HUMBLE BOOK BUNDLE: HEAD FIRST PROGRAMMING BY O'REILLY**](https://www.humblebundle.com/books/head-first-programming-oreilly-books?partner=unity3dreport)  - Get a head-start on learning to program with O'Reilly in our newest bundle, Head First Programming by O'Reilly! Dive into ebooks like Head First Java, 2nd Edition, Head First Python, 2nd Edition, and Head First C#, 3rd Edition. Plus, your purchase helps support Code For America!
US$772 WORTH OF AWESOME STUFF
PAY $1 OR MORE
[_Humble Bundle_](https://www.humblebundle.com/books/head-first-programming-oreilly-books?partner=unity3dreport) **Affiliate**

[**HUMBLE SOFTWARE BUNDLE: VEGAS PRO - DISCOVER YOUR ENDLESS FREEDOM**](https://www.humblebundle.com/software/vegas-pro-discover-your-endless-freedom-software?partner=unity3dreport)  - Everything you need to produce stunning videos with epic soundtracks: Enter the big screen with VEGAS Pro 16 Edit plus Hollywood effects like proDAD ReSpeedr and FXhome Enhance Ultra. Create your own songs with the Music Maker Score Edition, produce videos with VEGAS Movie Studio 16 and record & edit audio with SOUND FORGE Audio Studio 13. Discover your endless freedom with one of our best selling bundles ever! Plus, your purchase will support Stop AAPI Hate.
US$756 WORTH OF AWESOME STUFF
PAY $1 OR MORE
[_Humble Bundle_](https://www.humblebundle.com/software/vegas-pro-discover-your-endless-freedom-software?partner=unity3dreport) **Affiliate**

[**Announcing our Deprecated Books Repo!**](https://www.raywenderlich.com/21965623-announcing-our-deprecated-books-repo)  - We’re excited to announce that we’ve made our older, deprecated books free to everyone. Come see which books we’re releasing for all to enjoy! _[[github repo](https://github.com/raywenderlich/deprecated-books) includes [ Beat ’Em Up Game Starter Kit - Unity](https://cdn.raywenderlich.com/deprecated-books/bgsku/Beat_Em_Up_Game_Starter_Kit_Unity_v1.0.zip), [ Unity AR & VR by Tutorials](https://cdn.raywenderlich.com/deprecated-books/uvr/Unity_AR_&_VR_by_Tutorials_v1.2.zip) and more]_
[_raywenderlich.com_](https://www.raywenderlich.com/21965623-announcing-our-deprecated-books-repo)


## Spotlight

[![Against the Storm](https://gamedevdigest.com/assets/images/b57c12dca0c40f1e5a73133ba8b435bc.png)](https://youtu.be/dgCm2rWkb9w)
[**Against the Storm**](https://store.steampowered.com/app/1336490/Against_the_Storm/) is a roguelite city builder set in a fantasy world where it never stops raining. Develop technologies that will help your beaver, human, and lizard citizens tackle destructive storms and extend the frontier of your civilization.

If you'd like to get some advice on how to develop city-building games in Unity, message us on Reddit where we like to [share coding tips](https://www.reddit.com/r/unity/comments/moqpsh/today_i_made_a_small_system_that_allows_players/).

[_Eremite Games_](https://store.steampowered.com/app/1336490/Against_the_Storm/)

---

You can subscribe to the free weekly newsletter on [GameDevDigest.com](https://gamedevdigest.com)

This post includes affiliate links; I may receive compensation if you purchase products or services from the different links provided in this article.