Skip to main content

POPULAR POSTS

Pixelation Shader - Unity Shader

Pixelation Shader This is the correct way (one of many) of showing pixelation as a post-processing effect. This effect will work in any aspect ratio without any pixel size scaling issues as well as it is very minimal in terms of coding it up.

In order to get this to work 2 components have to be set up:
1) The pixelation image effect
2) The script - which will be attached to the camera

So let's get started by creating a new image effect shader.
We will take a look at our Shaderlab properties :
_MainTex("Texture", 2D) = "white" {} That's it, Everything else will be private and not shown in the editor.
Now we will see what are defined along with the _MainTex but are private.
sampler2D _MainTex; int _PixelDensity; float2 _AspectRatioMultiplier; We will pass _PixelDensity & _AspectRatioMultiplier values from script.
As this is an image effect there is no need to play around with the vertex shader.
Let's take a look at our fragment shader:
fixed4 frag (v2…

C# Fundamentals - Lambda Expressions

Lambda Expressions - Introduction Lambda expressions are how anonymous functions are created. It's a very powerful syntactic sugar that is available in C#.
At syntax level,The lambda operator => divides a lambda expression into two parts. The left side is the input parameter and the right side is the lambda body.
 A lambda expression can be simply viewed as a function or method without name, which looks like method parameter(s) => method body, or method parameter(s) => method return value. The => operator is called lambda operator and reads “go to”.
 In order to get a grasp of how lambdas work we will go through some examples.
Simple Lambda Example using System; using System.Collections.Generic; using System.Linq; public static class BitShift { public static void Main() { List<int> list = new List<int>() { 10, 12, 13, 14, 15, 16 }; List<int> evenNumbers = list.FindAll(x => (x % 2) == 0); …

Visual Upgrade - Unity Asset Store [ July, 2018 ]

Visual Overhaul - Assets That Turn Mediocre Into Drool Worthy *Note: These assets are not arranged in any way, no comparison is done. They are just really cool assets that will help make your game look at least a bit better.😁 .

8.Pixel Arsenal- Pixel Arsenal is a bundle of 419 retro game FX. This includes missile, explosion, beam, flamethrower, powerup, fire and several other particle effects. Looks pretty neat.
7.Subsurface Scatter Shader - Many organic and some inorganic skins are not totally opaque right at the surface, so light does not just bounce off the top surface. Instead, some light also penetrates the skin surface, and scatters around inside, taking on the color of the insides and emerging back out to blend with the surface reflection. Tomatoes, fruits, wax, gels (like honey, or Jello) and so on all have subsurface scattering (SSS), and photo-realism really cannot be achieved without it.
6.Liquid Mesh FX - Liquid Mesh FX is a pack of liquid particle effects. U…