You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.1 KiB
Plaintext
66 lines
2.1 KiB
Plaintext
|
4 years ago
|
Shader "Alembic/Standard"
|
||
|
|
{
|
||
|
|
Properties
|
||
|
|
{
|
||
|
|
_Color("Color", Color) = (1,1,1,1)
|
||
|
|
_MainTex("Albedo", 2D) = "white" {}
|
||
|
|
|
||
|
|
_Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5
|
||
|
|
|
||
|
|
_Glossiness("Smoothness", Range(0.0, 1.0)) = 0.5
|
||
|
|
_GlossMapScale("Smoothness Scale", Range(0.0, 1.0)) = 1.0
|
||
|
|
[Enum(Metallic Alpha,0,Albedo Alpha,1)] _SmoothnessTextureChannel ("Smoothness texture channel", Float) = 0
|
||
|
|
|
||
|
|
[Gamma] _Metallic("Metallic", Range(0.0, 1.0)) = 0.0
|
||
|
|
_MetallicGlossMap("Metallic", 2D) = "white" {}
|
||
|
|
|
||
|
|
[ToggleOff] _SpecularHighlights("Specular Highlights", Float) = 1.0
|
||
|
|
[ToggleOff] _GlossyReflections("Glossy Reflections", Float) = 1.0
|
||
|
|
|
||
|
|
_BumpScale("Scale", Float) = 1.0
|
||
|
|
_BumpMap("Normal Map", 2D) = "bump" {}
|
||
|
|
|
||
|
|
_Parallax ("Height Scale", Range (0.005, 0.08)) = 0.02
|
||
|
|
_ParallaxMap ("Height Map", 2D) = "black" {}
|
||
|
|
|
||
|
|
_OcclusionStrength("Strength", Range(0.0, 1.0)) = 1.0
|
||
|
|
_OcclusionMap("Occlusion", 2D) = "white" {}
|
||
|
|
|
||
|
|
_EmissionColor("Color", Color) = (0,0,0)
|
||
|
|
_EmissionMap("Emission", 2D) = "white" {}
|
||
|
|
|
||
|
|
_DetailMask("Detail Mask", 2D) = "white" {}
|
||
|
|
|
||
|
|
_DetailAlbedoMap("Detail Albedo x2", 2D) = "grey" {}
|
||
|
|
_DetailNormalMapScale("Scale", Float) = 1.0
|
||
|
|
_DetailNormalMap("Normal Map", 2D) = "bump" {}
|
||
|
|
|
||
|
|
[Enum(UV0,0,UV1,1)] _UVSec ("UV Set for secondary textures", Float) = 0
|
||
|
|
|
||
|
|
|
||
|
|
// Blending state
|
||
|
|
[HideInInspector] _Mode ("__mode", Float) = 0.0
|
||
|
|
[HideInInspector] _SrcBlend ("__src", Float) = 1.0
|
||
|
|
[HideInInspector] _DstBlend ("__dst", Float) = 0.0
|
||
|
|
[HideInInspector] _ZWrite ("__zw", Float) = 1.0
|
||
|
|
}
|
||
|
|
|
||
|
|
CGINCLUDE
|
||
|
|
#define UNITY_SETUP_BRDF_INPUT MetallicSetup
|
||
|
|
ENDCG
|
||
|
|
|
||
|
|
SubShader
|
||
|
|
{
|
||
|
|
Tags { "RenderType"="Opaque" "PerformanceChecks"="False" }
|
||
|
|
|
||
|
|
UsePass "Hidden/Alembic/MotionVectors/MOTIONVECTORS"
|
||
|
|
UsePass "Standard/FORWARD"
|
||
|
|
UsePass "Standard/FORWARD_DELTA"
|
||
|
|
UsePass "Standard/SHADOWCASTER"
|
||
|
|
UsePass "Standard/DEFERRED"
|
||
|
|
UsePass "Standard/META"
|
||
|
|
}
|
||
|
|
|
||
|
|
CustomEditor "StandardShaderGUI"
|
||
|
|
}
|