The following changes will change our existing shader into a holographic one:
- Remove the following properties as they will not be used:
- Add the following property to the shader:
_DotProduct("Rim effect", Range(-1,1)) = 0.25
- Add its respective variable to the CGPROGRAM section:
float _DotProduct;
- As this material is transparent, add the following tags:
Tags
{
"Queue" = "Transparent"
"IgnoreProjector" = "True"
"RenderType" = "Transparent"
}
According to the type of object that you will use, you might want its backside to appear. If this is the case, add Cull Off so that the back of the model won't be removed (culled).
- This shader is not trying to simulate a realistic material, so there is ...