Reader small image

You're reading from  Unity 5.x Shaders and Effects Cookbook

Product typeBook
Published inFeb 2016
Reading LevelIntermediate
Publisher
ISBN-139781785285240
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Alan Zucconi
Alan Zucconi
author image
Alan Zucconi

Alan Zucconi is a passionate developer, author, and lecturer, recognized as one of Develop's 30 under 30. His expertise has been built over the past 10 years, working in the intersection between creativity and education. Starting in 2015, he published a series of educational tutorials for other developers and machine learning enthusiasts.
Read more about Alan Zucconi

Right arrow

Creating a Holographic Shader


More and more space-themed games are being released every year. An important part of a good sci-fi game is the way futuristic technology is presented and integrated in the gameplay. There's nothing that screams futuristic more than holograms. Despite being present in many flavors, holograms are often represented as semi-transparent, thin projections of an object. This recipe shows you how to create a shader that simulates such effects. Take this as a starting point: you can add noise, animated scanlines, and vibrations to create a truly outstanding holographic effect. The following image shows an example of a holographic effect:

Getting ready

As the holographic effects shows only the outlines of an object, we'll call this shader Silhouette. Attach it to a material and assign it to your 3D model.

How to do it…

The following changes will modify our existing shader into a holographic one:

  1. Add the following property to the shader:

    _DotProduct("Rim effect", Range(-1,1...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity 5.x Shaders and Effects Cookbook
Published in: Feb 2016Publisher: ISBN-13: 9781785285240

Author (1)

author image
Alan Zucconi

Alan Zucconi is a passionate developer, author, and lecturer, recognized as one of Develop's 30 under 30. His expertise has been built over the past 10 years, working in the intersection between creativity and education. Starting in 2015, he published a series of educational tutorials for other developers and machine learning enthusiasts.
Read more about Alan Zucconi