Skip to content

Instantly share code, notes, and snippets.

Avatar

Silas Contaifer SilasContaifer

  • Richmond, VA, USA
View GitHub Profile
@unitycoder
unitycoder / Standard-2Sided-FixNormals.shader
Last active Jun 11, 2022
Standard Shader - 2 Sided (cull off) - Also, 2 Sided Standard Surface Shader with Fixed Normals
View Standard-2Sided-FixNormals.shader
// 2 sided standard surface shader (using 2 passes), with fixed normals for flipped faces
Shader "Custom/TwoSided (FixedNormals)"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0