Skip to content

Instantly share code, notes, and snippets.

View nukeop's full-sized avatar

nukeop

View GitHub Profile
@khadzhynov
khadzhynov / Chrome
Created November 13, 2021 15:26
Chrome metal shader for Unity3D - surface shader - 2 variants: simple metalness slider and metalness map - Thanks for Nukeop for noise function
Shader "GG/Chrome"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
[NoScaleOffset] _Normal ("Normal", 2D) = "bump" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
_Scale ("Scale", Range(0.0001,1)) = 0.1