mirror of
https://github.com/muskit/H3VR-TNH-Quality-of-Life-Improvements.git
synced 2026-06-02 20:24:26 -07:00
Initial commit
This commit is contained in:
@@ -0,0 +1,267 @@
|
||||
// Alloy Physical Shader Framework
|
||||
// Copyright 2013-2017 RUST LLC.
|
||||
// http://www.alloy.rustltd.com/
|
||||
|
||||
Shader "Alloy/Legacy/Tessellation/Human/Eye/Eyeball (Forward)" {
|
||||
Properties {
|
||||
// Main Textures
|
||||
_MainTextures ("'Eyeball Textures' {Section:{Color:0}}", Float) = 0
|
||||
[LM_Albedo] [LM_Transparency]
|
||||
_Color ("'Tint' {}", Color) = (1,1,1,1)
|
||||
[LM_MasterTilingOffset] [LM_Albedo]
|
||||
_MainTex ("'Base Color(RGB) Iris Depth(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_MainTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_MainTexUV ("UV Set", Float) = 0
|
||||
[LM_Metallic]
|
||||
_SpecTex ("'Iris(R) AO(G) Spec(B) Rough(A)' {Visualize:{R, G, B, A}, Parent:_MainTex}", 2D) = "white" {}
|
||||
[LM_NormalMap]
|
||||
_BumpMap ("'Normals' {Visualize:{NRM}, Parent:_MainTex}", 2D) = "bump" {}
|
||||
_BaseColorVertexTint ("'Vertex Color Tint' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Main Properties
|
||||
_MainPhysicalProperties ("'Main Properties' {Section:{Color:1}}", Float) = 0
|
||||
_Specularity ("'Specularity' {Min:0, Max:1}", Float) = 1
|
||||
_Roughness ("'Roughness' {Min:0, Max:1}", Float) = 1
|
||||
_Occlusion ("'Occlusion Strength' {Min:0, Max:1}", Float) = 1
|
||||
_BumpScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Eye Properties
|
||||
_EyeProperties ("'Eye' {Section:{Color:2}}", Float) = 0
|
||||
_EyeScleraColor ("'Sclera Tint' {}", Color) = (1,1,1)
|
||||
_EyeScleraScattering ("'Sclera Scattering' {Min:0, Max:1}", Float) = 0
|
||||
_EyeSpecularity ("'Cornea Specularity' {Min:0, Max:1}", Float) = 0.36
|
||||
_EyeRoughness ("'Cornea Roughness' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Iris Properties
|
||||
_IrisProperties ("'Iris' {Section:{Color:3}}", Float) = 0
|
||||
_EyeColor ("'Tint' {}", Color) = (1,1,1)
|
||||
_EyeIrisScattering ("'Scattering' {Min:0, Max:1}", Float) = 0
|
||||
_EyeSpecularTint ("'Specular Tint' {Min:0, Max:1}", Float) = 1
|
||||
_EyeParallax ("'Depth' {Min:0, Max:0.08}", Float) = 0.08
|
||||
_EyePupilSize ("'Pupil Dilation' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Tessellation
|
||||
_TessellationProperties ("'Tessellation' {Section:{Color:5}}", Float) = 0
|
||||
[KeywordEnum(Displacement, Phong)]
|
||||
_TessellationMode ("'Mode' {Dropdown:{Displacement:{_Phong}, Phong:{_DispTex, _Displacement}}}", Float) = 0
|
||||
_DispTex ("'Heightmap(G)' {Visualize:{RGB}}", 2D) = "black" {}
|
||||
_DispTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Displacement ("'Displacement' {Min:0, Max:30}", Float) = 0.3
|
||||
_Phong ("'Phong Strength' {Min:0, Max:1}", Float) = 0.5
|
||||
_EdgeLength ("'Edge Length' {Min:2, Max:50}", Float) = 15
|
||||
|
||||
// Detail
|
||||
[Toggle(_DETAIL_MULX2)]
|
||||
_DetailT ("'Detail' {Feature:{Color:7}}", Float) = 0
|
||||
[Enum(Mul, 0, MulX2, 1)]
|
||||
_DetailMode ("'Color Mode' {Dropdown:{Mul:{}, MulX2:{}}}", Float) = 0
|
||||
_DetailAlbedoMap ("'Color(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_DetailAlbedoMapVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_DetailAlbedoMapUV ("UV Set", Float) = 0
|
||||
_DetailNormalMap ("'Normals' {Visualize:{NRM}, Parent:_DetailAlbedoMap}", 2D) = "bump" {}
|
||||
_DetailWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DetailNormalMapScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Decal
|
||||
[Toggle(_DECAL_ON)]
|
||||
_Decal ("'Decal' {Feature:{Color:9}}", Float) = 0
|
||||
_DecalColor ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_DecalTex ("'Base Color(RGB) Opacity(A)' {Visualize:{RGB, A}}", 2D) = "black" {}
|
||||
_DecalTexUV ("UV Set", Float) = 0
|
||||
_DecalWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DecalSpecularity ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_DecalAlphaVertexTint ("'Vertex Alpha Tint' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Emission
|
||||
[Toggle(_EMISSION)]
|
||||
_Emission ("'Emission' {Feature:{Color:10}}", Float) = 0
|
||||
[LM_Emission]
|
||||
[HDR]
|
||||
_EmissionColor ("'Tint' {}", Color) = (1,1,1)
|
||||
[LM_Emission]
|
||||
_EmissionMap ("'Mask(RGB)' {Visualize:{RGB}, Parent:_MainTex}", 2D) = "white" {}
|
||||
_IncandescenceMap ("'Effect(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_IncandescenceMapVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_IncandescenceMapUV ("UV Set", Float) = 0
|
||||
[Gamma]
|
||||
_EmissionWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
|
||||
// Rim Emission
|
||||
[Toggle(_RIM_ON)]
|
||||
_Rim ("'Rim Emission' {Feature:{Color:11}}", Float) = 0
|
||||
[HDR]
|
||||
_RimColor ("'Tint' {}", Color) = (1,1,1)
|
||||
_RimTex ("'Effect(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_RimTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_RimTexUV ("UV Set", Float) = 0
|
||||
[Gamma]
|
||||
_RimWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
[Gamma]
|
||||
_RimBias ("'Fill' {Min:0, Max:1}", Float) = 0
|
||||
_RimPower ("'Falloff' {Min:0.01}", Float) = 4
|
||||
|
||||
// Dissolve
|
||||
[Toggle(_DISSOLVE_ON)]
|
||||
_Dissolve ("'Dissolve' {Feature:{Color:12}}", Float) = 0
|
||||
[HDR]
|
||||
_DissolveGlowColor ("'Glow Tint' {}", Color) = (1,1,1,1)
|
||||
_DissolveTex ("'Glow Color(RGB) Opacity(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_DissolveTexUV ("UV Set", Float) = 0
|
||||
_DissolveCutoff ("'Cutoff' {Min:0, Max:1}", Float) = 0
|
||||
[Gamma]
|
||||
_DissolveGlowWeight ("'Glow Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DissolveEdgeWidth ("'Glow Width' {Min:0, Max:1}", Float) = 0.01
|
||||
|
||||
// Forward Rendering Options
|
||||
_ForwardRenderingOptions ("'Forward Rendering Options' {Section:{Color:19}}", Float) = 0
|
||||
[ToggleOff]
|
||||
_SpecularHighlights ("'Specular Highlights' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
[ToggleOff]
|
||||
_GlossyReflections ("'Glossy Reflections' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
|
||||
// Advanced Options
|
||||
_AdvancedOptions ("'Advanced Options' {Section:{Color:20}}", Float) = 0
|
||||
_Lightmapping ("'GI' {LightmapEmissionProperty:{}}", Float) = 1
|
||||
_RenderQueue ("'Render Queue' {RenderQueue:{}}", Float) = 0
|
||||
_EnableInstancing ("'Enable Instancing' {EnableInstancing:{}}", Float) = 0
|
||||
}
|
||||
|
||||
CGINCLUDE
|
||||
#define A_TESSELLATION_SHADER
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Tags {
|
||||
"Queue" = "Geometry"
|
||||
"RenderType" = "Opaque"
|
||||
//"DisableBatching" = "LODFading"
|
||||
}
|
||||
LOD 400
|
||||
|
||||
Pass {
|
||||
Name "FORWARD"
|
||||
Tags { "LightMode" = "ForwardBase" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _EMISSION
|
||||
#pragma shader_feature _RIM_ON
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
#pragma shader_feature _ _GLOSSYREFLECTIONS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdbase
|
||||
#pragma multi_compile_fog
|
||||
#pragma multi_compile_instancing
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDBASE
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/EyeballForward.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Base.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "FORWARD_DELTA"
|
||||
Tags { "LightMode" = "ForwardAdd" }
|
||||
|
||||
Blend One One
|
||||
ZWrite Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdadd_fullshadows
|
||||
#pragma multi_compile_fog
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDADD
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/EyeballForward.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Add.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "SHADOWCASTER"
|
||||
Tags { "LightMode" = "ShadowCaster" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
|
||||
#pragma multi_compile_shadowcaster
|
||||
#pragma multi_compile_instancing
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_SHADOWCASTER
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/EyeballForward.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Shadow.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "Meta"
|
||||
Tags { "LightMode" = "Meta" }
|
||||
|
||||
Cull Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers nomrt gles
|
||||
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _EMISSION
|
||||
|
||||
#pragma vertex aMainVertexShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_META
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/EyeballForward.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Meta.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
|
||||
FallBack "Alloy/Legacy/Human/Eye/Eyeball (Forward)"
|
||||
CustomEditor "AlloyFieldBasedEditor"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 45fdb5e0258f7bf44916ac39114720f4
|
||||
ShaderImporter:
|
||||
defaultTextures:
|
||||
- _MainTex: {instanceID: 0}
|
||||
- _SpecTex: {instanceID: 0}
|
||||
- _BumpMap: {instanceID: 0}
|
||||
- _DetailMask: {instanceID: 0}
|
||||
- _DetailAlbedoMap: {instanceID: 0}
|
||||
- _DetailMaterialMap: {fileID: 2800000, guid: 2b77d5cb601375f4ba50c6194c126e59,
|
||||
type: 3}
|
||||
- _DetailNormalMap: {instanceID: 0}
|
||||
- _DecalTex: {instanceID: 0}
|
||||
- _EmissionMap: {instanceID: 0}
|
||||
- _IncandescenceMap: {instanceID: 0}
|
||||
- _RimTex: {instanceID: 0}
|
||||
- _DissolveTex: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
@@ -0,0 +1,300 @@
|
||||
// Alloy Physical Shader Framework
|
||||
// Copyright 2013-2017 RUST LLC.
|
||||
// http://www.alloy.rustltd.com/
|
||||
|
||||
Shader "Alloy/Legacy/Tessellation/Human/Eye/Eyeball" {
|
||||
Properties {
|
||||
// Main Textures
|
||||
_MainTextures ("'Eyeball Textures' {Section:{Color:0}}", Float) = 0
|
||||
[LM_Albedo] [LM_Transparency]
|
||||
_Color ("'Tint' {}", Color) = (1,1,1,1)
|
||||
[LM_MasterTilingOffset] [LM_Albedo]
|
||||
_MainTex ("'Base Color(RGB) Iris Depth(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_MainTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_MainTexUV ("UV Set", Float) = 0
|
||||
[LM_Metallic]
|
||||
_SpecTex ("'Iris(R) AO(G) Spec(B) Rough(A)' {Visualize:{R, G, B, A}, Parent:_MainTex}", 2D) = "white" {}
|
||||
[LM_NormalMap]
|
||||
_BumpMap ("'Normals' {Visualize:{NRM}, Parent:_MainTex}", 2D) = "bump" {}
|
||||
_BaseColorVertexTint ("'Vertex Color Tint' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Main Properties
|
||||
_MainPhysicalProperties ("'Main Properties' {Section:{Color:1}}", Float) = 0
|
||||
_Specularity ("'Specularity' {Min:0, Max:1}", Float) = 1
|
||||
_Roughness ("'Roughness' {Min:0, Max:1}", Float) = 1
|
||||
_Occlusion ("'Occlusion Strength' {Min:0, Max:1}", Float) = 1
|
||||
_BumpScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Eye Properties
|
||||
_EyeProperties ("'Cornea' {Section:{Color:2}}", Float) = 0
|
||||
_EyeBumpMap ("'Normals' {Visualize:{NRM}, Parent:_MainTex}", 2D) = "bump" {}
|
||||
_EyeCorneaWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_EyeRoughness ("'Roughness' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Iris Properties
|
||||
_IrisProperties ("'Iris' {Section:{Color:3}}", Float) = 0
|
||||
_EyeScleraColor("'Sclera Tint' {}", Color) = (1,1,1)
|
||||
_EyeColor ("'Tint' {}", Color) = (1,1,1)
|
||||
_EyeSpecularTint ("'Specular Tint' {Min:0, Max:1}", Float) = 1
|
||||
_EyeParallax ("'Depth' {Min:0, Max:0.08}", Float) = 0.08
|
||||
_EyePupilSize ("'Pupil Dilation' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Tessellation
|
||||
_TessellationProperties ("'Tessellation' {Section:{Color:5}}", Float) = 0
|
||||
[KeywordEnum(Displacement, Phong)]
|
||||
_TessellationMode ("'Mode' {Dropdown:{Displacement:{_Phong}, Phong:{_DispTex, _Displacement}}}", Float) = 0
|
||||
_DispTex ("'Heightmap(G)' {Visualize:{RGB}}", 2D) = "black" {}
|
||||
_DispTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Displacement ("'Displacement' {Min:0, Max:30}", Float) = 0.3
|
||||
_Phong ("'Phong Strength' {Min:0, Max:1}", Float) = 0.5
|
||||
_EdgeLength ("'Edge Length' {Min:2, Max:50}", Float) = 15
|
||||
|
||||
// Detail
|
||||
[Toggle(_DETAIL_MULX2)]
|
||||
_DetailT ("'Detail' {Feature:{Color:7}}", Float) = 0
|
||||
[Enum(Mul, 0, MulX2, 1)]
|
||||
_DetailMode ("'Color Mode' {Dropdown:{Mul:{}, MulX2:{}}}", Float) = 0
|
||||
_DetailAlbedoMap ("'Color(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_DetailAlbedoMapVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_DetailAlbedoMapUV ("UV Set", Float) = 0
|
||||
_DetailNormalMap ("'Normals' {Visualize:{NRM}, Parent:_DetailAlbedoMap}", 2D) = "bump" {}
|
||||
_DetailWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DetailNormalMapScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Decal
|
||||
[Toggle(_DECAL_ON)]
|
||||
_Decal ("'Decal' {Feature:{Color:9}}", Float) = 0
|
||||
_DecalColor ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_DecalTex ("'Base Color(RGB) Opacity(A)' {Visualize:{RGB, A}}", 2D) = "black" {}
|
||||
_DecalTexUV ("UV Set", Float) = 0
|
||||
_DecalWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DecalSpecularity ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_DecalAlphaVertexTint ("'Vertex Alpha Tint' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Emission
|
||||
[Toggle(_EMISSION)]
|
||||
_Emission ("'Emission' {Feature:{Color:10}}", Float) = 0
|
||||
[LM_Emission]
|
||||
[HDR]
|
||||
_EmissionColor ("'Tint' {}", Color) = (1,1,1)
|
||||
[LM_Emission]
|
||||
_EmissionMap ("'Mask(RGB)' {Visualize:{RGB}, Parent:_MainTex}", 2D) = "white" {}
|
||||
_IncandescenceMap ("'Effect(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_IncandescenceMapVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_IncandescenceMapUV ("UV Set", Float) = 0
|
||||
[Gamma]
|
||||
_EmissionWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
|
||||
// Rim Emission
|
||||
[Toggle(_RIM_ON)]
|
||||
_Rim ("'Rim Emission' {Feature:{Color:11}}", Float) = 0
|
||||
[HDR]
|
||||
_RimColor ("'Tint' {}", Color) = (1,1,1)
|
||||
_RimTex ("'Effect(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_RimTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_RimTexUV ("UV Set", Float) = 0
|
||||
[Gamma]
|
||||
_RimWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
[Gamma]
|
||||
_RimBias ("'Fill' {Min:0, Max:1}", Float) = 0
|
||||
_RimPower ("'Falloff' {Min:0.01}", Float) = 4
|
||||
|
||||
// Dissolve
|
||||
[Toggle(_DISSOLVE_ON)]
|
||||
_Dissolve ("'Dissolve' {Feature:{Color:12}}", Float) = 0
|
||||
[HDR]
|
||||
_DissolveGlowColor ("'Glow Tint' {}", Color) = (1,1,1,1)
|
||||
_DissolveTex ("'Glow Color(RGB) Opacity(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_DissolveTexUV ("UV Set", Float) = 0
|
||||
_DissolveCutoff ("'Cutoff' {Min:0, Max:1}", Float) = 0
|
||||
[Gamma]
|
||||
_DissolveGlowWeight ("'Glow Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DissolveEdgeWidth ("'Glow Width' {Min:0, Max:1}", Float) = 0.01
|
||||
|
||||
// Forward Rendering Options
|
||||
_ForwardRenderingOptions ("'Forward Rendering Options' {Section:{Color:19}}", Float) = 0
|
||||
[ToggleOff]
|
||||
_SpecularHighlights ("'Specular Highlights' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
[ToggleOff]
|
||||
_GlossyReflections ("'Glossy Reflections' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
|
||||
// Advanced Options
|
||||
_AdvancedOptions ("'Advanced Options' {Section:{Color:20}}", Float) = 0
|
||||
_Lightmapping ("'GI' {LightmapEmissionProperty:{}}", Float) = 1
|
||||
_RenderQueue ("'Render Queue' {RenderQueue:{}}", Float) = 0
|
||||
_EnableInstancing ("'Enable Instancing' {EnableInstancing:{}}", Float) = 0
|
||||
}
|
||||
|
||||
CGINCLUDE
|
||||
#define A_TESSELLATION_SHADER
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Tags {
|
||||
"Queue" = "Geometry"
|
||||
"RenderType" = "Opaque"
|
||||
//"DisableBatching" = "LODFading"
|
||||
}
|
||||
LOD 400
|
||||
|
||||
Pass {
|
||||
Name "FORWARD"
|
||||
Tags { "LightMode" = "ForwardBase" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _EMISSION
|
||||
#pragma shader_feature _RIM_ON
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
#pragma shader_feature _ _GLOSSYREFLECTIONS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdbase
|
||||
#pragma multi_compile_fog
|
||||
#pragma multi_compile_instancing
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDBASE
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/Eyeball.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Base.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "FORWARD_DELTA"
|
||||
Tags { "LightMode" = "ForwardAdd" }
|
||||
|
||||
Blend One One
|
||||
ZWrite Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdadd_fullshadows
|
||||
#pragma multi_compile_fog
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDADD
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/Eyeball.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Add.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "SHADOWCASTER"
|
||||
Tags { "LightMode" = "ShadowCaster" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
|
||||
#pragma multi_compile_shadowcaster
|
||||
#pragma multi_compile_instancing
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_SHADOWCASTER
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/Eyeball.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Shadow.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "DEFERRED"
|
||||
Tags { "LightMode" = "Deferred" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _EMISSION
|
||||
#pragma shader_feature _RIM_ON
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
#pragma shader_feature _ _GLOSSYREFLECTIONS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_prepassfinal
|
||||
#pragma skip_variants FOG_LINEAR FOG_EXP FOG_EXP2
|
||||
#pragma multi_compile_instancing
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_DEFERRED
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/Eyeball.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Gbuffer.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "Meta"
|
||||
Tags { "LightMode" = "Meta" }
|
||||
|
||||
Cull Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers nomrt gles
|
||||
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _EMISSION
|
||||
|
||||
#pragma vertex aMainVertexShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_META
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/Eyeball.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Meta.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
|
||||
FallBack "Alloy/Legacy/Human/Eye/Eyeball"
|
||||
CustomEditor "AlloyFieldBasedEditor"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c58fa41adb95452478df012706cfffba
|
||||
timeCreated: 1445805716
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures:
|
||||
- _MainTex: {instanceID: 0}
|
||||
- _SpecTex: {instanceID: 0}
|
||||
- _BumpMap: {instanceID: 0}
|
||||
- _EyeBumpMap: {instanceID: 0}
|
||||
- _DispTex: {instanceID: 0}
|
||||
- _DetailAlbedoMap: {instanceID: 0}
|
||||
- _DetailMaterialMap: {fileID: 2800000, guid: 2b77d5cb601375f4ba50c6194c126e59,
|
||||
type: 3}
|
||||
- _DetailNormalMap: {instanceID: 0}
|
||||
- _DecalTex: {instanceID: 0}
|
||||
- _EmissionMap: {instanceID: 0}
|
||||
- _IncandescenceMap: {instanceID: 0}
|
||||
- _RimTex: {instanceID: 0}
|
||||
- _DissolveTex: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,100 @@
|
||||
// Alloy Physical Shader Framework
|
||||
// Copyright 2013-2017 RUST LLC.
|
||||
// http://www.alloy.rustltd.com/
|
||||
|
||||
Shader "Alloy/Legacy/Tessellation/Human/Eye/Occlusion" {
|
||||
Properties {
|
||||
// Main Textures
|
||||
_MainTextures ("'Eye OcclusionTextures' {Section:{Color:0}}", Float) = 0
|
||||
_Color ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_MainTex ("'Base Color(RGB) Opacity(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_MainTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_MainTexUV ("UV Set", Float) = 0
|
||||
_AoMap ("'Ambient Occlusion(G)' {Visualize:{RGB}, Parent:_MainTex}", 2D) = "white" {}
|
||||
_BaseColorVertexTint ("'Vertex Color Tint' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Main Properties
|
||||
_MainPhysicalProperties ("'Main Properties' {Section:{Color:1}}", Float) = 0
|
||||
_Occlusion ("'Occlusion Strength' {Min:0, Max:1}", Float) = 1
|
||||
|
||||
// Tessellation
|
||||
_TessellationProperties ("'Tessellation' {Section:{Color:5}}", Float) = 0
|
||||
[KeywordEnum(Displacement, Phong)]
|
||||
_TessellationMode ("'Mode' {Dropdown:{Displacement:{_Phong}, Phong:{_DispTex, _Displacement}}}", Float) = 0
|
||||
_DispTex ("'Heightmap(G)' {Visualize:{RGB}}", 2D) = "black" {}
|
||||
_DispTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Displacement ("'Displacement' {Min:0, Max:30}", Float) = 0.3
|
||||
_Phong ("'Phong Strength' {Min:0, Max:1}", Float) = 0.5
|
||||
_EdgeLength ("'Edge Length' {Min:2, Max:50}", Float) = 15
|
||||
|
||||
// Dissolve
|
||||
[Toggle(_DISSOLVE_ON)]
|
||||
_Dissolve ("'Dissolve' {Feature:{Color:12}}", Float) = 0
|
||||
[HDR]
|
||||
_DissolveGlowColor ("'Glow Tint' {}", Color) = (1,1,1,1)
|
||||
_DissolveTex ("'Glow Color(RGB) Opacity(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_DissolveTexUV ("UV Set", Float) = 0
|
||||
_DissolveCutoff ("'Cutoff' {Min:0, Max:1}", Float) = 0
|
||||
[Gamma]
|
||||
_DissolveGlowWeight ("'Glow Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DissolveEdgeWidth ("'Glow Width' {Min:0, Max:1}", Float) = 0.01
|
||||
|
||||
// Advanced Options
|
||||
_AdvancedOptions ("'Advanced Options' {Section:{Color:20}}", Float) = 0
|
||||
_RenderQueue ("'Render Queue' {RenderQueue:{}}", Float) = 0
|
||||
_EnableInstancing ("'Enable Instancing' {EnableInstancing:{}}", Float) = 0
|
||||
}
|
||||
|
||||
CGINCLUDE
|
||||
#define _ALPHAPREMULTIPLY_ON
|
||||
#define A_TESSELLATION_SHADER
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Tags {
|
||||
"Queue" = "Transparent-1"
|
||||
"IgnoreProjector" = "True"
|
||||
"RenderType" = "Transparent"
|
||||
"ForceNoShadowCasting" = "True"
|
||||
//"DisableBatching" = "LODFading"
|
||||
}
|
||||
LOD 400
|
||||
Offset -1,-1
|
||||
|
||||
Pass {
|
||||
Name "FORWARD"
|
||||
Tags { "LightMode" = "ForwardBase" }
|
||||
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
ZWrite Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdbase
|
||||
#pragma multi_compile_fog
|
||||
#pragma multi_compile_instancing
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDBASE
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/EyeOcclusion.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Base.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
|
||||
FallBack "Alloy/Legacy/Human/Eye/Occlusion"
|
||||
CustomEditor "AlloyFieldBasedEditor"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fd2ba45ab46492449b2d6f4dc2916d5d
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
@@ -0,0 +1,295 @@
|
||||
// Alloy Physical Shader Framework
|
||||
// Copyright 2013-2017 RUST LLC.
|
||||
// http://www.alloy.rustltd.com/
|
||||
|
||||
Shader "Alloy/Legacy/Tessellation/Human/Skin (Forward)" {
|
||||
Properties {
|
||||
[Toggle(EFFECT_BUMP)]
|
||||
_HasBumpMap ("'Normals Source' {Dropdown:{VertexNormals:{_BumpMap,_BumpScale,_SssBumpBlur,_DetailNormalMap,_DetailNormalMapScale,_WetNormalMap,_WetNormalMapScale}, NormalMaps:{}}}", Float) = 1
|
||||
|
||||
// Skin Textures
|
||||
_MainTextures ("'Skin Textures' {Section:{Color:0}}", Float) = 0
|
||||
[LM_Albedo] [LM_Transparency]
|
||||
_Color ("'Tint' {}", Color) = (1,1,1,1)
|
||||
[LM_MasterTilingOffset] [LM_Albedo]
|
||||
_MainTex ("'Base Color(RGB) SSS(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_MainTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_MainTexUV ("UV Set", Float) = 0
|
||||
[LM_Metallic]
|
||||
_SpecTex ("'Skin(R) AO(G) Spec(B) Rough(A)' {Visualize:{R, G, B, A}, Parent:_MainTex}", 2D) = "white" {}
|
||||
[LM_NormalMap]
|
||||
_BumpMap ("'Normals' {Visualize:{NRM}, Parent:_MainTex}", 2D) = "bump" {}
|
||||
_BaseColorVertexTint ("'Vertex Color Tint' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Skin Properties
|
||||
_MainPhysicalProperties ("'Skin Properties' {Section:{Color:1}}", Float) = 0
|
||||
_Specularity ("'Specularity' {Min:0, Max:1}", Float) = 1
|
||||
_Roughness ("'Roughness' {Min:0, Max:1}", Float) = 1
|
||||
_Occlusion ("'Occlusion Strength' {Min:0, Max:1}", Float) = 1
|
||||
_BumpScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Scattering
|
||||
_ScatteringProperties ("'Scattering' {Section:{Color:2}}", Float) = 0
|
||||
_SssBrdfTex ("'LUT' {Controls:False}", 2D) = "gray" {}
|
||||
_SssBias ("'Bias' {Min:0, Max:1}", Float) = 0
|
||||
_SssScale ("'Scale' {Min:0, Max:1}", Float) = 1
|
||||
_SssAoSaturation ("'AO Saturation' {Min:0, Max:1}", Float) = 0.5
|
||||
_SssBumpBlur ("'Bump Blur' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Transmission
|
||||
_TransmissionProperties ("'Transmission' {Section:{Color:3}}", Float) = 0
|
||||
_TransColor ("'Tint' {}", Color) = (1,1,1)
|
||||
[Gamma]
|
||||
_TransScale ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_TransPower ("'Falloff' {Min:1}", Float) = 1
|
||||
_TransDistortion ("'Bump Distortion' {Min:0, Max:1}", Float) = 0.1
|
||||
|
||||
// Tessellation
|
||||
_TessellationProperties ("'Tessellation' {Section:{Color:5}}", Float) = 0
|
||||
[KeywordEnum(Displacement, Phong)]
|
||||
_TessellationMode ("'Mode' {Dropdown:{Displacement:{_Phong}, Phong:{_DispTex, _Displacement}}}", Float) = 0
|
||||
_DispTex ("'Heightmap(G)' {Visualize:{RGB}}", 2D) = "black" {}
|
||||
_DispTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Displacement ("'Displacement' {Min:0, Max:30}", Float) = 0.3
|
||||
_Phong ("'Phong Strength' {Min:0, Max:1}", Float) = 0.5
|
||||
_EdgeLength ("'Edge Length' {Min:2, Max:50}", Float) = 15
|
||||
|
||||
// Detail
|
||||
[Toggle(_DETAIL_MULX2)]
|
||||
_DetailT ("'Detail' {Feature:{Color:7}}", Float) = 0
|
||||
[Toggle(_NORMALMAP)]
|
||||
_DetailMaskSource ("'Mask Source' {Dropdown:{TextureAlpha:{}, VertexColorAlpha:{_DetailMask}}}", Float) = 0
|
||||
_DetailMask ("'Mask(A)' {Visualize:{A}, Parent:_MainTex}", 2D) = "white" {}
|
||||
_DetailMaskStrength ("'Mask Strength' {Min:0, Max:1}", Float) = 1
|
||||
[Enum(Mul, 0, MulX2, 1)]
|
||||
_DetailMode ("'Color Mode' {Dropdown:{Mul:{}, MulX2:{}}}", Float) = 0
|
||||
_DetailAlbedoMap ("'Color(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_DetailAlbedoMapVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_DetailAlbedoMapUV ("UV Set", Float) = 0
|
||||
_DetailNormalMap ("'Normals' {Visualize:{NRM}, Parent:_DetailAlbedoMap}", 2D) = "bump" {}
|
||||
_DetailWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DetailNormalMapScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Team Color
|
||||
[Toggle(_TEAMCOLOR_ON)]
|
||||
_TeamColor ("'Team Color' {Feature:{Color:8}}", Float) = 0
|
||||
[Enum(Masks, 0, Tint, 1)]
|
||||
_TeamColorMasksAsTint ("'Texture Mode' {Dropdown:{Masks:{}, Tint:{_TeamColorMasks, _TeamColor0, _TeamColor1, _TeamColor2, _TeamColor3}}}", Float) = 0
|
||||
_TeamColorMaskMap ("'Masks(RGBA)' {Visualize:{R, G, B, A, RGB}, Parent:_MainTex}", 2D) = "black" {}
|
||||
_TeamColorMasks ("'Channels' {Vector:Channels}", Vector) = (1,1,1,0)
|
||||
_TeamColor0 ("'Tint R' {}", Color) = (1,0,0)
|
||||
_TeamColor1 ("'Tint G' {}", Color) = (0,1,0)
|
||||
_TeamColor2 ("'Tint B' {}", Color) = (0,0,1)
|
||||
_TeamColor3 ("'Tint A' {}", Color) = (0.5,0.5,0.5)
|
||||
|
||||
// Decal
|
||||
[Toggle(_DECAL_ON)]
|
||||
_Decal ("'Decal' {Feature:{Color:9}}", Float) = 0
|
||||
_DecalColor ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_DecalTex ("'Base Color(RGB) Opacity(A)' {Visualize:{RGB, A}}", 2D) = "black" {}
|
||||
_DecalTexUV ("UV Set", Float) = 0
|
||||
_DecalWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DecalSpecularity ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_DecalAlphaVertexTint ("'Vertex Alpha Tint' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Emission
|
||||
[Toggle(_EMISSION)]
|
||||
_Emission ("'Emission' {Feature:{Color:10}}", Float) = 0
|
||||
[LM_Emission]
|
||||
[HDR]
|
||||
_EmissionColor ("'Tint' {}", Color) = (1,1,1)
|
||||
[LM_Emission]
|
||||
_EmissionMap ("'Mask(RGB)' {Visualize:{RGB}, Parent:_MainTex}", 2D) = "white" {}
|
||||
_IncandescenceMap ("'Effect(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_IncandescenceMapVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_IncandescenceMapUV ("UV Set", Float) = 0
|
||||
[Gamma]
|
||||
_EmissionWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
|
||||
// Rim Emission
|
||||
[Toggle(_RIM_ON)]
|
||||
_Rim ("'Rim Emission' {Feature:{Color:11}}", Float) = 0
|
||||
[HDR]
|
||||
_RimColor ("'Tint' {}", Color) = (1,1,1)
|
||||
_RimTex ("'Effect(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_RimTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_RimTexUV ("UV Set", Float) = 0
|
||||
[Gamma]
|
||||
_RimWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
[Gamma]
|
||||
_RimBias ("'Fill' {Min:0, Max:1}", Float) = 0
|
||||
_RimPower ("'Falloff' {Min:0.01}", Float) = 4
|
||||
|
||||
// Dissolve
|
||||
[Toggle(_DISSOLVE_ON)]
|
||||
_Dissolve ("'Dissolve' {Feature:{Color:12}}", Float) = 0
|
||||
[HDR]
|
||||
_DissolveGlowColor ("'Glow Tint' {}", Color) = (1,1,1,1)
|
||||
_DissolveTex ("'Glow Color(RGB) Opacity(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_DissolveTexUV ("UV Set", Float) = 0
|
||||
_DissolveCutoff ("'Cutoff' {Min:0, Max:1}", Float) = 0
|
||||
[Gamma]
|
||||
_DissolveGlowWeight ("'Glow Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DissolveEdgeWidth ("'Glow Width' {Min:0, Max:1}", Float) = 0.01
|
||||
|
||||
// Forward Rendering Options
|
||||
_ForwardRenderingOptions ("'Forward Rendering Options' {Section:{Color:19}}", Float) = 0
|
||||
[ToggleOff]
|
||||
_SpecularHighlights ("'Specular Highlights' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
[ToggleOff]
|
||||
_GlossyReflections ("'Glossy Reflections' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
|
||||
// Advanced Options
|
||||
_AdvancedOptions ("'Advanced Options' {Section:{Color:20}}", Float) = 0
|
||||
_Lightmapping ("'GI' {LightmapEmissionProperty:{}}", Float) = 1
|
||||
_RenderQueue ("'Render Queue' {RenderQueue:{}}", Float) = 0
|
||||
_EnableInstancing ("'Enable Instancing' {EnableInstancing:{}}", Float) = 0
|
||||
}
|
||||
|
||||
CGINCLUDE
|
||||
#define A_TESSELLATION_SHADER
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Tags {
|
||||
"Queue" = "Geometry"
|
||||
"RenderType" = "Opaque"
|
||||
//"DisableBatching" = "LODFading"
|
||||
}
|
||||
LOD 400
|
||||
|
||||
Pass {
|
||||
Name "FORWARD"
|
||||
Tags { "LightMode" = "ForwardBase" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _NORMALMAP
|
||||
#pragma shader_feature _TEAMCOLOR_ON
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _EMISSION
|
||||
#pragma shader_feature _RIM_ON
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
#pragma shader_feature _ _GLOSSYREFLECTIONS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdbase
|
||||
#pragma multi_compile_fog
|
||||
#pragma multi_compile_instancing
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDBASE
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/SkinForward.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Base.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "FORWARD_DELTA"
|
||||
Tags { "LightMode" = "ForwardAdd" }
|
||||
|
||||
Blend One One
|
||||
ZWrite Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _NORMALMAP
|
||||
#pragma shader_feature _TEAMCOLOR_ON
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdadd_fullshadows
|
||||
#pragma multi_compile_fog
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDADD
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/SkinForward.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Add.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "SHADOWCASTER"
|
||||
Tags { "LightMode" = "ShadowCaster" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _DISSOLVE_ON
|
||||
|
||||
#pragma multi_compile_shadowcaster
|
||||
#pragma multi_compile_instancing
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_SHADOWCASTER
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/SkinForward.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Shadow.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "Meta"
|
||||
Tags { "LightMode" = "Meta" }
|
||||
|
||||
Cull Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers nomrt gles
|
||||
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _NORMALMAP
|
||||
#pragma shader_feature _TEAMCOLOR_ON
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _EMISSION
|
||||
|
||||
#pragma vertex aMainVertexShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_META
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/SkinForward.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Meta.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
|
||||
FallBack "Alloy/Legacy/Human/Skin (Forward)"
|
||||
CustomEditor "AlloyFieldBasedEditor"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2eb313efdbec1e74582aaa1d35f62038
|
||||
ShaderImporter:
|
||||
defaultTextures:
|
||||
- _MainTex: {instanceID: 0}
|
||||
- _SpecTex: {instanceID: 0}
|
||||
- _BumpMap: {instanceID: 0}
|
||||
- _SssBrdfTex: {fileID: 2800000, guid: d13510bb2be49aa40a66a0101efb6a36, type: 3}
|
||||
- _DispTex: {instanceID: 0}
|
||||
- _DetailMask: {instanceID: 0}
|
||||
- _DetailAlbedoMap: {instanceID: 0}
|
||||
- _DetailMaterialMap: {fileID: 2800000, guid: 2b77d5cb601375f4ba50c6194c126e59,
|
||||
type: 3}
|
||||
- _DetailNormalMap: {instanceID: 0}
|
||||
- _TeamColorMaskMap: {instanceID: 0}
|
||||
- _DecalTex: {instanceID: 0}
|
||||
- _EmissionMap: {instanceID: 0}
|
||||
- _IncandescenceMap: {instanceID: 0}
|
||||
- _RimTex: {instanceID: 0}
|
||||
- _DissolveTex: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
@@ -0,0 +1,292 @@
|
||||
// Alloy Physical Shader Framework
|
||||
// Copyright 2013-2017 RUST LLC.
|
||||
// http://www.alloy.rustltd.com/
|
||||
|
||||
Shader "Alloy/Legacy/Tessellation/TriPlanar/Lite" {
|
||||
Properties {
|
||||
// Global Settings
|
||||
_Mode ("'Rendering Mode' {RenderingMode:{Opaque:{_Cutoff}, Cutout:{}, Fade:{_Cutoff}, Transparent:{_Cutoff}}}", Float) = 0
|
||||
_SrcBlend ("__src", Float) = 0
|
||||
_DstBlend ("__dst", Float) = 0
|
||||
_ZWrite ("__zw", Float) = 1
|
||||
[LM_TransparencyCutOff]
|
||||
_Cutoff ("'Opacity Cutoff' {Min:0, Max:1}", Float) = 0.5
|
||||
[Toggle(EFFECT_BUMP)]
|
||||
_HasBumpMap ("'Normals Source' {Dropdown:{VertexNormals:{_PrimaryBumpMap,_PrimaryBumpScale,_SecondaryBumpMap,_SecondaryBumpScale,_TertiaryBumpMap,_TertiaryBumpScale,_QuaternaryBumpMap,_QuaternaryBumpScale}, NormalMaps:{}}}", Float) = 1
|
||||
|
||||
// Primary Textures
|
||||
_PrimaryTextures ("'Primary Textures' {Section:{Color:0}}", Float) = 0
|
||||
_PrimaryColor ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_PrimaryMainTex ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_PrimaryMainTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_PrimaryBumpMap ("'Normals' {Visualize:{NRM}, Parent:_PrimaryMainTex}", 2D) = "bump" {}
|
||||
_PrimaryColorVertexTint ("'Vertex Color Tint' {Min:0, Max:1}", Float) = 0
|
||||
_PrimaryMetallic ("'Metallic' {Min:0, Max:1}", Float) = 0
|
||||
_PrimarySpecularity ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_PrimarySpecularTint ("'Specular Tint' {Min:0, Max:1}", Float) = 0
|
||||
_PrimaryRoughness ("'Roughness' {Min:0, Max:1}", Float) = 1
|
||||
_PrimaryBumpScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Secondary Textures
|
||||
[Toggle(_SECONDARY_TRIPLANAR_ON)]
|
||||
_SecondaryTextures ("'Secondary Textures' {Feature:{Color:1}}", Float) = 0
|
||||
_SecondaryColor ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_SecondaryMainTex ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_SecondaryMainTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_SecondaryBumpMap ("'Normals' {Visualize:{NRM}, Parent:_SecondaryMainTex}", 2D) = "bump" {}
|
||||
_SecondaryColorVertexTint ("'Vertex Color Tint' {Min:0, Max:1}", Float) = 0
|
||||
_SecondaryMetallic ("'Metallic' {Min:0, Max:1}", Float) = 0
|
||||
_SecondarySpecularity ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_SecondarySpecularTint ("'Specular Tint' {Min:0, Max:1}", Float) = 0
|
||||
_SecondaryRoughness ("'Roughness' {Min:0, Max:1}", Float) = 1
|
||||
_SecondaryBumpScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Tertiary Textures
|
||||
[Toggle(_TERTIARY_TRIPLANAR_ON)]
|
||||
_TertiaryTextures ("'Tertiary Textures' {Feature:{Color:2}}", Float) = 0
|
||||
_TertiaryColor ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_TertiaryMainTex ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_TertiaryMainTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_TertiaryBumpMap ("'Normals' {Visualize:{NRM}, Parent:_TertiaryMainTex}", 2D) = "bump" {}
|
||||
_TertiaryColorVertexTint ("'Vertex Color Tint' {Min:0, Max:1}", Float) = 0
|
||||
_TertiaryMetallic ("'Metallic' {Min:0, Max:1}", Float) = 0
|
||||
_TertiarySpecularity ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_TertiarySpecularTint ("'Specular Tint' {Min:0, Max:1}", Float) = 0
|
||||
_TertiaryRoughness ("'Roughness' {Min:0, Max:1}", Float) = 1
|
||||
_TertiaryBumpScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Quaternary Textures
|
||||
[Toggle(_QUATERNARY_TRIPLANAR_ON)]
|
||||
_QuaternaryTextures ("'Quaternary Textures' {Feature:{Color:3}}", Float) = 0
|
||||
_QuaternaryColor ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_QuaternaryMainTex ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_QuaternaryMainTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_QuaternaryBumpMap ("'Normals' {Visualize:{NRM}, Parent:_QuaternaryMainTex}", 2D) = "bump" {}
|
||||
_QuaternaryColorVertexTint ("'Vertex Color Tint' {Min:0, Max:1}", Float) = 0
|
||||
_QuaternaryMetallic ("'Metallic' {Min:0, Max:1}", Float) = 0
|
||||
_QuaternarySpecularity ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_QuaternarySpecularTint ("'Specular Tint' {Min:0, Max:1}", Float) = 0
|
||||
_QuaternaryRoughness ("'Roughness' {Min:0, Max:1}", Float) = 1
|
||||
_QuaternaryBumpScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Triplanar
|
||||
_TriplanarProperties ("'Triplanar' {Section:{Color:4}}", Float) = 0
|
||||
[Toggle(_TRIPLANARMODE_WORLD)]
|
||||
_TriplanarMode ("'Mode' {Dropdown:{Object:{}, World:{}}}", Float) = 1
|
||||
_TriplanarBlendSharpness ("'Sharpness' {Min:1, Max:50}", Float) = 2
|
||||
|
||||
// Tessellation
|
||||
_TessellationProperties ("'Tessellation' {Section:{Color:5}}", Float) = 0
|
||||
_Phong ("'Phong Strength' {Min:0, Max:1}", Float) = 0.5
|
||||
_EdgeLength ("'Edge Length' {Min:2, Max:50}", Float) = 15
|
||||
|
||||
// Rim Emission
|
||||
[Toggle(_RIM_ON)]
|
||||
_Rim ("'Rim Emission' {Feature:{Color:11}}", Float) = 0
|
||||
[HDR]
|
||||
_RimColor ("'Tint' {}", Color) = (1,1,1)
|
||||
[Gamma]
|
||||
_RimWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
[Gamma]
|
||||
_RimBias ("'Fill' {Min:0, Max:1}", Float) = 0
|
||||
_RimPower ("'Falloff' {Min:0.01}", Float) = 4
|
||||
|
||||
// Forward Rendering Options
|
||||
_ForwardRenderingOptions ("'Forward Rendering Options' {Section:{Color:19}}", Float) = 0
|
||||
[ToggleOff]
|
||||
_SpecularHighlights ("'Specular Highlights' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
[ToggleOff]
|
||||
_GlossyReflections ("'Glossy Reflections' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
|
||||
// Advanced Options
|
||||
_AdvancedOptions ("'Advanced Options' {Section:{Color:20}}", Float) = 0
|
||||
_Lightmapping ("'GI' {LightmapEmissionProperty:{}}", Float) = 1
|
||||
_RenderQueue ("'Render Queue' {RenderQueue:{}}", Float) = 0
|
||||
_EnableInstancing ("'Enable Instancing' {EnableInstancing:{}}", Float) = 0
|
||||
}
|
||||
|
||||
CGINCLUDE
|
||||
#define A_TESSELLATION_SHADER
|
||||
#define _TESSELLATIONMODE_PHONG
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Tags {
|
||||
"Queue" = "Geometry"
|
||||
"RenderType" = "Opaque"
|
||||
//"DisableBatching" = "LODFading"
|
||||
}
|
||||
LOD 400
|
||||
|
||||
Pass {
|
||||
Name "FORWARD"
|
||||
Tags { "LightMode" = "ForwardBase" }
|
||||
|
||||
Blend [_SrcBlend] [_DstBlend]
|
||||
ZWrite [_ZWrite]
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TRIPLANARMODE_WORLD
|
||||
#pragma shader_feature _SECONDARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _TERTIARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _QUATERNARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _RIM_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
#pragma shader_feature _ _GLOSSYREFLECTIONS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdbase
|
||||
#pragma multi_compile_fog
|
||||
#pragma multi_compile_instancing
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDBASE
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/TriPlanar.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Base.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "FORWARD_DELTA"
|
||||
Tags { "LightMode" = "ForwardAdd" }
|
||||
|
||||
Blend [_SrcBlend] One
|
||||
ZWrite Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TRIPLANARMODE_WORLD
|
||||
#pragma shader_feature _SECONDARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _TERTIARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _QUATERNARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdadd_fullshadows
|
||||
#pragma multi_compile_fog
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDADD
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/TriPlanar.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Add.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "SHADOWCASTER"
|
||||
Tags { "LightMode" = "ShadowCaster" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature _TRIPLANARMODE_WORLD
|
||||
#pragma shader_feature _SECONDARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _TERTIARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _QUATERNARY_TRIPLANAR_ON
|
||||
|
||||
#pragma multi_compile_shadowcaster
|
||||
#pragma multi_compile_instancing
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_SHADOWCASTER
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/TriPlanar.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Shadow.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "DEFERRED"
|
||||
Tags { "LightMode" = "Deferred" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers nomrt gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TRIPLANARMODE_WORLD
|
||||
#pragma shader_feature _SECONDARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _TERTIARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _QUATERNARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _RIM_ON
|
||||
#pragma shader_feature _ _GLOSSYREFLECTIONS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_prepassfinal
|
||||
#pragma skip_variants FOG_LINEAR FOG_EXP FOG_EXP2
|
||||
#pragma multi_compile_instancing
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_DEFERRED
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/TriPlanar.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Gbuffer.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "Meta"
|
||||
Tags { "LightMode" = "Meta" }
|
||||
|
||||
Cull Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers nomrt gles
|
||||
|
||||
#pragma shader_feature _TRIPLANARMODE_WORLD
|
||||
#pragma shader_feature _SECONDARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _TERTIARY_TRIPLANAR_ON
|
||||
#pragma shader_feature _QUATERNARY_TRIPLANAR_ON
|
||||
|
||||
#pragma vertex aMainVertexShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_META
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/TriPlanar.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Meta.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
|
||||
FallBack "Alloy/Legacy/TriPlanar/Lite"
|
||||
CustomEditor "AlloyFieldBasedEditor"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f70ed737cdfac2b4fa9e10ac4cc4afcf
|
||||
timeCreated: 1432487252
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,293 @@
|
||||
// Alloy Physical Shader Framework
|
||||
// Copyright 2013-2017 RUST LLC.
|
||||
// http://www.alloy.rustltd.com/
|
||||
|
||||
Shader "Alloy/Legacy/Tessellation/Vertex Blend/4Splat TriPlanar" {
|
||||
Properties {
|
||||
// Global Settings
|
||||
_Mode ("'Rendering Mode' {RenderingMode:{Opaque:{_Cutoff}, Cutout:{}, Fade:{_Cutoff}, Transparent:{_Cutoff}}}", Float) = 0
|
||||
_SrcBlend ("__src", Float) = 0
|
||||
_DstBlend ("__dst", Float) = 0
|
||||
_ZWrite ("__zw", Float) = 1
|
||||
[LM_TransparencyCutOff]
|
||||
_Cutoff ("'Opacity Cutoff' {Min:0, Max:1}", Float) = 0.5
|
||||
[Toggle(EFFECT_BUMP)]
|
||||
_HasBumpMap ("'Normals Source' {Dropdown:{VertexNormals:{_Normal0,_Normal1,_Normal2,_Normal3,_DetailNormalMap,_DetailNormalMapScale}, NormalMaps:{}}}", Float) = 1
|
||||
|
||||
// Splat0 Properties
|
||||
_Splat0Properties ("'Splat0' {Section:{Color:0}}", Float) = 0
|
||||
_Splat0Tint ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_Splat0 ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_Splat0Velocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Normal0 ("'Normals' {Visualize:{NRM}, Parent:_Splat0}", 2D) = "bump" {}
|
||||
_Metallic0 ("'Metallic' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatSpecularity0 ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_SplatSpecularTint0 ("'Specular Tint' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatRoughness0 ("'Roughness' {Min:0, Max:1}", Float) = 1.0
|
||||
|
||||
// Splat1 Properties
|
||||
_Splat1Properties ("'Splat1' {Section:{Color:1}}", Float) = 0
|
||||
_Splat1Tint ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_Splat1 ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_Splat1Velocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Normal1 ("'Normals' {Visualize:{NRM}, Parent:_Splat1}", 2D) = "bump" {}
|
||||
_Metallic1 ("'Metallic' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatSpecularity1 ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_SplatSpecularTint1 ("'Specular Tint' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatRoughness1 ("'Roughness' {Min:0, Max:1}", Float) = 1.0
|
||||
|
||||
// Splat2 Properties
|
||||
_Splat2Properties ("'Splat2' {Section:{Color:2}}", Float) = 0
|
||||
_Splat2Tint ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_Splat2 ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_Splat2Velocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Normal2 ("'Normals' {Visualize:{NRM}, Parent:_Splat2}", 2D) = "bump" {}
|
||||
_Metallic2 ("'Metallic' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatSpecularity2 ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_SplatSpecularTint2 ("'Specular Tint' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatRoughness2 ("'Roughness' {Min:0, Max:1}", Float) = 1.0
|
||||
|
||||
// Splat3 Properties
|
||||
_Splat3Properties ("'Splat3' {Section:{Color:3}}", Float) = 0
|
||||
_Splat3Tint ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_Splat3 ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_Splat3Velocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Normal3 ("'Normals' {Visualize:{NRM}, Parent:_Splat3}", 2D) = "bump" {}
|
||||
_Metallic3 ("'Metallic' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatSpecularity3 ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_SplatSpecularTint3 ("'Specular Tint' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatRoughness3 ("'Roughness' {Min:0, Max:1}", Float) = 1.0
|
||||
|
||||
// Triplanar
|
||||
_TriplanarProperties ("'Triplanar' {Section:{Color:4}}", Float) = 0
|
||||
[Toggle(_TRIPLANARMODE_WORLD)]
|
||||
_TriplanarMode ("'Mode' {Dropdown:{Object:{}, World:{}}}", Float) = 1
|
||||
_TriplanarBlendSharpness ("'Sharpness' {Min:1, Max:50}", Float) = 2
|
||||
|
||||
// Tessellation
|
||||
_TessellationProperties ("'Tessellation' {Section:{Color:5}}", Float) = 0
|
||||
_Phong ("'Phong Strength' {Min:0, Max:1}", Float) = 0.5
|
||||
_EdgeLength ("'Edge Length' {Min:2, Max:50}", Float) = 15
|
||||
|
||||
// AO2
|
||||
[Toggle(_AO2_ON)]
|
||||
_AO2 ("'AO2' {Feature:{Color:6}}", Float) = 0
|
||||
_Ao2Map ("'AO2(G)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_Ao2MapUV ("UV Set", Float) = 1
|
||||
_Ao2Occlusion ("'Occlusion Strength' {Min:0, Max:1}", Float) = 1
|
||||
|
||||
// Detail
|
||||
[Toggle(_DETAIL_MULX2)]
|
||||
_DetailT ("'Detail' {Feature:{Color:7}}", Float) = 0
|
||||
[Enum(Mul, 0, MulX2, 1)]
|
||||
_DetailMode ("'Color Mode' {Dropdown:{Mul:{}, MulX2:{}}}", Float) = 0
|
||||
_DetailAlbedoMap ("'Color(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_DetailAlbedoMapUV ("UV Set", Float) = 0
|
||||
_DetailNormalMap ("'Normals' {Visualize:{NRM}, Parent:_DetailAlbedoMap}", 2D) = "bump" {}
|
||||
_DetailWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DetailNormalMapScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Decal
|
||||
[Toggle(_DECAL_ON)]
|
||||
_Decal ("'Decal' {Feature:{Color:9}}", Float) = 0
|
||||
_DecalColor ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_DecalTex ("'Base Color(RGB) Opacity(A)' {Visualize:{RGB, A}}", 2D) = "black" {}
|
||||
_DecalTexUV ("UV Set", Float) = 0
|
||||
_DecalWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DecalSpecularity ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_DecalAlphaVertexTint ("'Vertex Alpha Tint' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Forward Rendering Options
|
||||
_ForwardRenderingOptions ("'Forward Rendering Options' {Section:{Color:19}}", Float) = 0
|
||||
[ToggleOff]
|
||||
_SpecularHighlights ("'Specular Highlights' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
[ToggleOff]
|
||||
_GlossyReflections ("'Glossy Reflections' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
|
||||
// Advanced Options
|
||||
_AdvancedOptions ("'Advanced Options' {Section:{Color:20}}", Float) = 0
|
||||
_Lightmapping ("'GI' {LightmapEmissionProperty:{}}", Float) = 1
|
||||
_RenderQueue ("'Render Queue' {RenderQueue:{}}", Float) = 0
|
||||
_EnableInstancing ("'Enable Instancing' {EnableInstancing:{}}", Float) = 0
|
||||
}
|
||||
|
||||
CGINCLUDE
|
||||
#define _METALLICGLOSSMAP
|
||||
#define A_TESSELLATION_SHADER
|
||||
#define _TESSELLATIONMODE_PHONG
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Tags {
|
||||
"RenderType" = "Opaque"
|
||||
"PerformanceChecks" = "False"
|
||||
//"DisableBatching" = "LODFading"
|
||||
}
|
||||
LOD 300
|
||||
|
||||
Pass {
|
||||
Name "FORWARD"
|
||||
Tags { "LightMode" = "ForwardBase" }
|
||||
|
||||
Blend [_SrcBlend] [_DstBlend]
|
||||
ZWrite [_ZWrite]
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TRIPLANARMODE_WORLD
|
||||
#pragma shader_feature _AO2_ON
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
#pragma shader_feature _ _GLOSSYREFLECTIONS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdbase
|
||||
#pragma multi_compile_fog
|
||||
#pragma multi_compile_instancing
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDBASE
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/VertexBlend.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Base.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "FORWARD_DELTA"
|
||||
Tags { "LightMode" = "ForwardAdd" }
|
||||
|
||||
Blend [_SrcBlend] One
|
||||
ZWrite Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TRIPLANARMODE_WORLD
|
||||
#pragma shader_feature _AO2_ON
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdadd_fullshadows
|
||||
#pragma multi_compile_fog
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDADD
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/VertexBlend.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Add.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "SHADOWCASTER"
|
||||
Tags { "LightMode" = "ShadowCaster" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature _TRIPLANARMODE_WORLD
|
||||
|
||||
#pragma multi_compile_shadowcaster
|
||||
#pragma multi_compile_instancing
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_SHADOWCASTER
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/VertexBlend.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Shadow.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "DEFERRED"
|
||||
Tags { "LightMode" = "Deferred" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers nomrt gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TRIPLANARMODE_WORLD
|
||||
#pragma shader_feature _AO2_ON
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _ _GLOSSYREFLECTIONS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_prepassfinal
|
||||
#pragma skip_variants FOG_LINEAR FOG_EXP FOG_EXP2
|
||||
#pragma multi_compile_instancing
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_DEFERRED
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/VertexBlend.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Gbuffer.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "Meta"
|
||||
Tags { "LightMode" = "Meta" }
|
||||
|
||||
Cull Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers nomrt gles
|
||||
|
||||
#pragma shader_feature _TRIPLANARMODE_WORLD
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
|
||||
#pragma vertex aMainVertexShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_META
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/VertexBlend.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Meta.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
|
||||
Fallback "Alloy/Legacy/Vertex Blend/4Splat TriPlanar"
|
||||
CustomEditor "AlloyFieldBasedEditor"
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 54dced0a2f15f5f459d21edaf7e8b721
|
||||
timeCreated: 1456952662
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures:
|
||||
- _Splat0: {instanceID: 0}
|
||||
- _Normal0: {instanceID: 0}
|
||||
- _Splat1: {instanceID: 0}
|
||||
- _Normal1: {instanceID: 0}
|
||||
- _Splat2: {instanceID: 0}
|
||||
- _Normal2: {instanceID: 0}
|
||||
- _Splat3: {instanceID: 0}
|
||||
- _Normal3: {instanceID: 0}
|
||||
- _DetailAlbedoMap: {instanceID: 0}
|
||||
- _DetailMaterialMap: {fileID: 2800000, guid: 2b77d5cb601375f4ba50c6194c126e59,
|
||||
type: 3}
|
||||
- _DetailNormalMap: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,293 @@
|
||||
// Alloy Physical Shader Framework
|
||||
// Copyright 2013-2017 RUST LLC.
|
||||
// http://www.alloy.rustltd.com/
|
||||
|
||||
Shader "Alloy/Legacy/Tessellation/Vertex Blend/4Splat" {
|
||||
Properties {
|
||||
// Global Settings
|
||||
_Mode ("'Rendering Mode' {RenderingMode:{Opaque:{_Cutoff}, Cutout:{}, Fade:{_Cutoff}, Transparent:{_Cutoff}}}", Float) = 0
|
||||
_SrcBlend ("__src", Float) = 0
|
||||
_DstBlend ("__dst", Float) = 0
|
||||
_ZWrite ("__zw", Float) = 1
|
||||
[LM_TransparencyCutOff]
|
||||
_Cutoff ("'Opacity Cutoff' {Min:0, Max:1}", Float) = 0.5
|
||||
[Toggle(EFFECT_BUMP)]
|
||||
_HasBumpMap ("'Normals Source' {Dropdown:{VertexNormals:{_Normal0,_Normal1,_Normal2,_Normal3,_DetailNormalMap,_DetailNormalMapScale}, NormalMaps:{}}}", Float) = 1
|
||||
|
||||
// Splat0 Properties
|
||||
_Splat0Properties ("'Splat0' {Section:{Color:0}}", Float) = 0
|
||||
_Splat0Tint ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_Splat0 ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_Splat0Velocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Splat0UV ("UV Set", Float) = 0
|
||||
_Normal0 ("'Normals' {Visualize:{NRM}, Parent:_Splat0}", 2D) = "bump" {}
|
||||
_Metallic0 ("'Metallic' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatSpecularity0 ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_SplatSpecularTint0 ("'Specular Tint' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatRoughness0 ("'Roughness' {Min:0, Max:1}", Float) = 1.0
|
||||
|
||||
// Splat1 Properties
|
||||
_Splat1Properties ("'Splat1' {Section:{Color:0}}", Float) = 0
|
||||
_Splat1Tint ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_Splat1 ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_Splat1Velocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Splat1UV ("UV Set", Float) = 0
|
||||
_Normal1 ("'Normals' {Visualize:{NRM}, Parent:_Splat1}", 2D) = "bump" {}
|
||||
_Metallic1 ("'Metallic' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatSpecularity1 ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_SplatSpecularTint1 ("'Specular Tint' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatRoughness1 ("'Roughness' {Min:0, Max:1}", Float) = 1.0
|
||||
|
||||
// Splat2 Properties
|
||||
_Splat2Properties ("'Splat2' {Section:{Color:0}}", Float) = 0
|
||||
_Splat2Tint ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_Splat2 ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_Splat2Velocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Splat2UV ("UV Set", Float) = 0
|
||||
_Normal2 ("'Normals' {Visualize:{NRM}, Parent:_Splat2}", 2D) = "bump" {}
|
||||
_Metallic2 ("'Metallic' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatSpecularity2 ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_SplatSpecularTint2 ("'Specular Tint' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatRoughness2 ("'Roughness' {Min:0, Max:1}", Float) = 1.0
|
||||
|
||||
// Splat3 Properties
|
||||
_Splat3Properties ("'Splat3' {Section:{Color:0}}", Float) = 0
|
||||
_Splat3Tint ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_Splat3 ("'Base Color(RGB) Rough(A)' {Visualize:{RGB, A}}", 2D) = "white" {}
|
||||
_Splat3Velocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Splat3UV ("UV Set", Float) = 0
|
||||
_Normal3 ("'Normals' {Visualize:{NRM}, Parent:_Splat3}", 2D) = "bump" {}
|
||||
_Metallic3 ("'Metallic' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatSpecularity3 ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_SplatSpecularTint3 ("'Specular Tint' {Min:0, Max:1}", Float) = 0.0
|
||||
_SplatRoughness3 ("'Roughness' {Min:0, Max:1}", Float) = 1.0
|
||||
|
||||
// Tessellation
|
||||
_TessellationProperties ("'Tessellation' {Section:{Color:5}}", Float) = 0
|
||||
[KeywordEnum(Displacement, Phong)]
|
||||
_TessellationMode ("'Mode' {Dropdown:{Displacement:{_Phong}, Phong:{_DispTex, _Displacement}}}", Float) = 0
|
||||
_DispTex ("'Heightmap(G)' {Visualize:{RGB}}", 2D) = "black" {}
|
||||
_DispTexVelocity ("Scroll", Vector) = (0,0,0,0)
|
||||
_Displacement ("'Displacement' {Min:0, Max:30}", Float) = 0.3
|
||||
_Phong ("'Phong Strength' {Min:0, Max:1}", Float) = 0.5
|
||||
_EdgeLength ("'Edge Length' {Min:2, Max:50}", Float) = 15
|
||||
|
||||
// AO2
|
||||
[Toggle(_AO2_ON)]
|
||||
_AO2 ("'AO2' {Feature:{Color:6}}", Float) = 0
|
||||
_Ao2Map ("'AO2(G)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_Ao2MapUV ("UV Set", Float) = 1
|
||||
_Ao2Occlusion ("'Occlusion Strength' {Min:0, Max:1}", Float) = 1
|
||||
|
||||
// Detail
|
||||
[Toggle(_DETAIL_MULX2)]
|
||||
_DetailT ("'Detail' {Feature:{Color:7}}", Float) = 0
|
||||
[Enum(Mul, 0, MulX2, 1)]
|
||||
_DetailMode ("'Color Mode' {Dropdown:{Mul:{}, MulX2:{}}}", Float) = 0
|
||||
_DetailAlbedoMap ("'Color(RGB)' {Visualize:{RGB}}", 2D) = "white" {}
|
||||
_DetailAlbedoMapUV ("UV Set", Float) = 0
|
||||
_DetailNormalMap ("'Normals' {Visualize:{NRM}, Parent:_DetailAlbedoMap}", 2D) = "bump" {}
|
||||
_DetailWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DetailNormalMapScale ("'Normal Strength' {}", Float) = 1
|
||||
|
||||
// Decal
|
||||
[Toggle(_DECAL_ON)]
|
||||
_Decal ("'Decal' {Feature:{Color:9}}", Float) = 0
|
||||
_DecalColor ("'Tint' {}", Color) = (1,1,1,1)
|
||||
_DecalTex ("'Base Color(RGB) Opacity(A)' {Visualize:{RGB, A}}", 2D) = "black" {}
|
||||
_DecalTexUV ("UV Set", Float) = 0
|
||||
_DecalWeight ("'Weight' {Min:0, Max:1}", Float) = 1
|
||||
_DecalSpecularity ("'Specularity' {Min:0, Max:1}", Float) = 0.5
|
||||
_DecalAlphaVertexTint ("'Vertex Alpha Tint' {Min:0, Max:1}", Float) = 0
|
||||
|
||||
// Forward Rendering Options
|
||||
_ForwardRenderingOptions ("'Forward Rendering Options' {Section:{Color:19}}", Float) = 0
|
||||
[ToggleOff]
|
||||
_SpecularHighlights ("'Specular Highlights' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
[ToggleOff]
|
||||
_GlossyReflections ("'Glossy Reflections' {Toggle:{On:{}, Off:{}}}", Float) = 1.0
|
||||
|
||||
// Advanced Options
|
||||
_AdvancedOptions ("'Advanced Options' {Section:{Color:20}}", Float) = 0
|
||||
_Lightmapping ("'GI' {LightmapEmissionProperty:{}}", Float) = 1
|
||||
_RenderQueue ("'Render Queue' {RenderQueue:{}}", Float) = 0
|
||||
_EnableInstancing ("'Enable Instancing' {EnableInstancing:{}}", Float) = 0
|
||||
}
|
||||
|
||||
CGINCLUDE
|
||||
#define A_TESSELLATION_SHADER
|
||||
ENDCG
|
||||
|
||||
SubShader {
|
||||
Tags {
|
||||
"RenderType" = "Opaque"
|
||||
"PerformanceChecks" = "False"
|
||||
//"DisableBatching" = "LODFading"
|
||||
}
|
||||
LOD 300
|
||||
|
||||
Pass {
|
||||
Name "FORWARD"
|
||||
Tags { "LightMode" = "ForwardBase" }
|
||||
|
||||
Blend [_SrcBlend] [_DstBlend]
|
||||
ZWrite [_ZWrite]
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _AO2_ON
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
#pragma shader_feature _ _GLOSSYREFLECTIONS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdbase
|
||||
#pragma multi_compile_fog
|
||||
#pragma multi_compile_instancing
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDBASE
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/VertexBlend.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Base.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "FORWARD_DELTA"
|
||||
Tags { "LightMode" = "ForwardAdd" }
|
||||
|
||||
Blend [_SrcBlend] One
|
||||
ZWrite Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _AO2_ON
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_fwdadd_fullshadows
|
||||
#pragma multi_compile_fog
|
||||
//#pragma multi_compile __ VTRANSPARENCY_ON
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_FORWARDADD
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/VertexBlend.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Add.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "SHADOWCASTER"
|
||||
Tags { "LightMode" = "ShadowCaster" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
|
||||
#pragma multi_compile_shadowcaster
|
||||
#pragma multi_compile_instancing
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_SHADOWCASTER
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/VertexBlend.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Shadow.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "DEFERRED"
|
||||
Tags { "LightMode" = "Deferred" }
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers nomrt gles
|
||||
|
||||
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
|
||||
#pragma shader_feature EFFECT_BUMP
|
||||
#pragma shader_feature _TESSELLATIONMODE_DISPLACEMENT _TESSELLATIONMODE_PHONG
|
||||
#pragma shader_feature _AO2_ON
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
#pragma shader_feature _ _GLOSSYREFLECTIONS_OFF
|
||||
|
||||
//#pragma multi_compile __ LOD_FADE_PERCENTAGE LOD_FADE_CROSSFADE
|
||||
#pragma multi_compile_prepassfinal
|
||||
#pragma skip_variants FOG_LINEAR FOG_EXP FOG_EXP2
|
||||
#pragma multi_compile_instancing
|
||||
|
||||
#pragma hull aMainHullShader
|
||||
#pragma vertex aMainTessellationVertexShader
|
||||
#pragma domain aMainDomainShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_DEFERRED
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/VertexBlend.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Gbuffer.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Pass {
|
||||
Name "Meta"
|
||||
Tags { "LightMode" = "Meta" }
|
||||
|
||||
Cull Off
|
||||
|
||||
CGPROGRAM
|
||||
//#pragma target 4.6
|
||||
#pragma exclude_renderers nomrt gles
|
||||
|
||||
#pragma shader_feature _DETAIL_MULX2
|
||||
#pragma shader_feature _DECAL_ON
|
||||
|
||||
#pragma vertex aMainVertexShader
|
||||
#pragma fragment aMainFragmentShader
|
||||
|
||||
#define UNITY_PASS_META
|
||||
|
||||
#include "Assets/Alloy/Legacy/Shaders/Definition/VertexBlend.cginc"
|
||||
#include "Assets/Alloy/Shaders/Forward/Meta.cginc"
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
|
||||
Fallback "Alloy/Legacy/Vertex Blend/4Splat"
|
||||
CustomEditor "AlloyFieldBasedEditor"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83274b1e531b99b4ab201213dbb130f2
|
||||
timeCreated: 1430267111
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures:
|
||||
- _Splat0: {instanceID: 0}
|
||||
- _Normal0: {instanceID: 0}
|
||||
- _Splat1: {instanceID: 0}
|
||||
- _Normal1: {instanceID: 0}
|
||||
- _Splat2: {instanceID: 0}
|
||||
- _Normal2: {instanceID: 0}
|
||||
- _Splat3: {instanceID: 0}
|
||||
- _Normal3: {instanceID: 0}
|
||||
- _DetailAlbedoMap: {instanceID: 0}
|
||||
- _DetailMaterialMap: {fileID: 2800000, guid: 2b77d5cb601375f4ba50c6194c126e59,
|
||||
type: 3}
|
||||
- _DetailNormalMap: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user