ATTENTION: This post is still under construction.
Summary: Here I discuss basic operations on shaders using Unity and Unreal.
In this article, I take a dive to see to how commonly used basic mathematical operations affects the shader model. I will use Unity’s Shader Graph and Unreal Node based shader editor to test these operations. These are very common operations we find in almost all shaders. And using them properly becomes key in making efficient shaders. Let’s take a brief look at these operations.
The most common operations for manipulating variables in shaders are Addition, Subtraction, Multiplication and Division.
Since these are self explanatory basic math operations. I will skip explaining what each means in terms of mathematics, but will explain what they mean in terms of Shader manipulation.
Let’s begin with the first operation on the list.
Addition
Addition in Unity
here is a brief description.
Addition in Unreal