第一次提交
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 203af09763426b849863f19873323ef2
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,50 @@
|
||||
#ifndef VACUUM_SHADERS_T2M_DEFERRED_CGINC
|
||||
#define VACUUM_SHADERS_T2M_DEFERRED_CGINC
|
||||
|
||||
|
||||
|
||||
#include "../cginc/Core.cginc"
|
||||
|
||||
|
||||
void vert (inout appdata_full v, out Input o)
|
||||
{
|
||||
UNITY_INITIALIZE_OUTPUT(Input,o);
|
||||
|
||||
o.texcoord = v.texcoord.xy;
|
||||
|
||||
//Curved World
|
||||
#if defined(CURVEDWORLD_IS_INSTALLED) && !defined(CURVEDWORLD_DISABLED_ON)
|
||||
#ifdef CURVEDWORLD_NORMAL_TRANSFORMATION_ON
|
||||
CURVEDWORLD_TRANSFORM_VERTEX_AND_NORMAL(v.vertex, v.normal, v.tangent)
|
||||
#else
|
||||
CURVEDWORLD_TRANSFORM_VERTEX(v.vertex)
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void surf (Input IN, inout SurfaceOutputStandard o)
|
||||
{
|
||||
#if defined(_ALPHATEST_ON)
|
||||
float holesmapValue = TerrainToMeshCalculateClipValue(IN.texcoord.xy);
|
||||
clip(holesmapValue - 0.5);
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(TERRAIN_TO_MESH_PASS_SHADOW_CASTER)
|
||||
|
||||
o.Albedo = 0;
|
||||
o.Alpha = 1;
|
||||
o.Normal = float3(0, 0, 1);
|
||||
o.Metallic = 0;
|
||||
o.Smoothness = 0;
|
||||
o.Occlusion = 1;
|
||||
|
||||
#else
|
||||
|
||||
TerrainToMeshCalculateLayersBlend(IN.texcoord.xy, o.Albedo, o.Alpha, o.Normal, o.Metallic, o.Smoothness, o.Occlusion);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2d07730cc67dffd49af033f967d533a7
|
||||
timeCreated: 1446884875
|
||||
licenseType: Free
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6f64f1c0a2699f049b359df73c926832
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user