Tag: shader
-
How to Simulate Cellular Automata with Shaders
This post will show how to simulate cellular automata using shaders. The popular cellular automaton developed by John Conway, Game of Life, will be used as an example for this tutorial. To learn how to set up your project, check out the first two parts of this tutorial: How to Use Shaders For Simulations and How to Simulate Smoke with Shaders.
-
How to Simulate Smoke with Shaders
This post will show how to simulate the diffusion of smoke using shaders. This part of the tutorial focuses on the Maths and the code necessary to recreate the smoke effect. To learn how to set up your project, check out the first part: How to Use Shaders For Simulations.
-
How to Use Shaders for Simulations
This series of tutorials will teach you how use shaders for simulations; in particular how to use them to simulate fluids. This first post will focus on how to continuously process a texture using a shader. This technique is at the heart of most simulations and will be used in this series to implement shaders that simulate smoke and…
-
To Voronoi and Beyond
Voronoi Diagrams This tutorial is a primer on Voronoi diagrams: what they are, what you need them for and how to generate them using a Shader in Unity. You can download the complete Unity page in Part 4. Part 1: Voronoi Diagrams Technically speaking, Voronoi diagrams are a way to tassellate a space. It means…
-
Arrays & shaders: heatmaps in Unity
—
This tutorial explains how to pass arrays to shaders in Unity. This feature has been present for a long time, but is mostly undocumented. Unity 5.4.0 Beta 1 will introduce a proper API to pass arrays to shaders; this technique however will work with any previous version. If you are using Unity 5.4+, please refer to the Arrays & Shaders…
-
Accessibility Design: Color Blindness
The filter This tutorial will teach you how to create and use post-processing effects which simulate how colour blind players might experience your Unity game. One of my most anticipated games is The Witness; since it uses so many vibrant colours, it will be used as an example in this tutorial. This is how a player affected by red-green colour blindness (protanopia) might see…
-
Impossible Geometry: Non-Euclidean Cubes
This tutorial will teach you how to create non euclidean cubes in Unity, giving the illusion that each face is a door onto another dimension. This post is part of a series of tutorials on impossible geometries. This effect can be seen in many game, most notoriously Antichamber which uses it extensively. You can download the Unity package here.
-
Screen shaders and image effects in Unity3D
—
Part 1, Part 2, Part 3, Part 4, Part 5, [download the Unity3D package] If you are using Unity3D you may be familiar with image effects. They are scripts which, once attached to a camera, alter its rendering output. Despite being presented as standard C# scripts, the actual computation is done using shaders. So far, materials have been applied…
-
Vertex and fragment shaders in Unity3D
—
Part 1, Part 2, Part 3, Part 4, Part 5, [download the Unity3D package] The previous three posts of this tutorial have introduced surface shaders and how they can be used to specify physical properties (such as albedo, gloss and specular reflections) of the materials we want to model. The other type of shader available in Unity3D…