Tag: shader

  • Tentacle Suckers Shader

    Tentacle Suckers Shader

    Following the unexpected success of the tutorial on Inverse Kinematics for Tentacles, I have decided to share the shader that I used to make them so realistic. If you are not familiar with shaders, fear not. This tutorial will be target at beginners, and you’ll only need a basic understanding of how Unity works. A…

  • ShaderGUI: Custom Material Inspectors in Unity

    ShaderGUI: Custom Material Inspectors in Unity

    This tutorial explains how to create custom material inspectors for your shaders in Unity 5. This is a tutorial for Unity 5: Unity 4 used MaterialEditor (legacy documentation here) to customise a material’s inspector. That is now deprecated; you should use the new ShaderGUI (documentation here) instead.

  • Arrays & Shaders in Unity 5.4+

    Arrays & Shaders in Unity 5.4+

    This post shows how to use arrays and shaders in Unity 5.4. Back in January I already covered this topic in an article called Arrays & shaders: Heatmaps in Unity. My original approach exposed an undocumented feature that allowed to pass arrays to shaders. Since then, Unity 5.4 has introduced proper support in its API. This tutorial replaces…

  • 3D Printer Shader Effect – Part 2

    3D Printer Shader Effect – Part 2

    This is the second part of the tutorial that will recreate the 3D printer effect seen in games such as Astroneer and Planetary Annihilation. This is a two part tutorials: A link to download the Unity package (code, shader and 3D models) is provided at the end of the tutorial.

  • 3D Printer Shader Effect – Part 1

    3D Printer Shader Effect – Part 1

    This tutorial will recreate the 3D printer effect seen in games such as Astroneer and Planetary Annihilation. It’s an interesting effect that shows an object in the process of being created. Despite looking simple, there are many challenges that are far from being trivial. This is a two part tutorials: A link to download the Unity package (code,…

  • Volumetric Rendering: Signed Distance Functions

    Volumetric Rendering: Signed Distance Functions

    This tutorial explains how to create complex 3D shapes inside volumetric shaders. Signed Distance Functions (often referred to as Fields) are mathematical tools used to describe geometrical shapes such as spheres, boxes and tori. Compared to traditional 3D models made out of triangles, signed distance functions provide virtually infinite resolution, and are amenable to geometric manipulation. The following animation,…

  • Volumetric Rendering: Surface Shading

    Volumetric Rendering: Surface Shading

    This third instalment on Volumetric Rendering will explain how to shade volumes in a realistic fashion. This essential step is what gives three-dimensionality to the flat, unlit shapes that have been generated so far with raymarching. You can find here all the other posts in this series: The full Unity package is available at the end of this article. ๐Ÿ“ฆ

  • Volumetric Rendering: Raymarching

    Volumetric Rendering: Raymarching

    This post continues the tutorial on volumetric rendering, introducing one of the most used techniques: raymarching. You can find here all the other posts in this series: The full Unity package is available at the end of this article. ๐Ÿ“ฆ

  • Volumetric Rendering

    Volumetric Rendering

    This is the first part of a Unity tutorial dedicated to Volumetric Rendering, raymarching and signed distance fields. These techniques allow us to overcome the biggest limitation of modern 3D engines, which only let us render the outer shell of an object. Volumetric rendering enables the creation of realistic materials that interact with light in a complex way, such as fog, smoke, water…

  • LCD Monitor Shader Effect

    LCD Monitor Shader Effect

    This tutorial will show how to create a realistic shader that simulate the look and feeling of LCDs (Liquid Crystal Displays).ย Developer Monomi Park has recently announced (link) a new update to their game Slime Rancher. One of the most intriguing cosmetic effect that is going to be added is a special LCD shader that makes…