Skip to content

Instantly share code, notes, and snippets.

@supertask
Last active January 27, 2020 17:14
Show Gist options
  • Save supertask/b7a28b34d49311844f4a4d5e2f3f469f to your computer and use it in GitHub Desktop.
Save supertask/b7a28b34d49311844f4a4d5e2f3f469f to your computer and use it in GitHub Desktop.
A part of Culling_Off.shader on Project North Star
void surf (Input IN, inout SurfaceOutput o) {
fixed4 tex = tex2D(_MainTex, IN.uv_MainTex);
o.Albedo = 0.0;
o.Gloss = 0.0;
o.Alpha = 1.0;
o.Specular = 0.0;
o.Normal = UnpackNormal(tex2D(_BumpMap, IN.uv_BumpMap));
o.Emission = tex.rgb;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment