Tag: Cg

  • How to Simulate Cellular Automata with Shaders

    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.

  • Arrays & shaders: heatmaps in Unity

    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…

  • Vertex and fragment shaders in Unity3D

    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…

  • A gentle introduction to shaders in Unity3D

    Part 1, Part 2, Part 3, Part 4, Part 5 We can safely say that Unity3D has made game development easier for a lot of people. Something where it still has a long way to go is, with no doubt, shader coding. Often surrounded by mystery, a shader is a program specifically made to run on a GPU.…