提交修改

This commit is contained in:
Bob.Song
2026-03-06 09:44:00 +08:00
parent e125bb869e
commit db7bc90fe2
3631 changed files with 9050 additions and 395938 deletions

View File

@@ -1,122 +0,0 @@
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "Game/Role/Role-Diffuse" {
Properties {
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_StencilComp("Stencil Comparison", Float) = 8
_Stencil("Stencil ID", Float) = 0
_StencilOp("Stencil Operation", Float) = 0
_StencilWriteMask("Stencil Write Mask", Float) = 255
_StencilReadMask("Stencil Read Mask", Float) = 255
_ColorMask("Color Mask", Float) = 15
_LightDir_0 ("Light0 direction", Vector) = (0.6, -0.8, 0.2, 1.0)
_LightColor_0 ("Light0 color", Color) = (0.6196,0.5255,0.46275,1)
_LightIntensity_0 ("Light0 intensity", Range(0,8)) = 0.8
_LightDir_1 ("Light1 direction", Vector) = (-0.9, 0.5, 0.1, 1.0)
_LightColor_1 ("Light1 color", Color) = (0.2196,0.498,0.61176,1)
_LightIntensity_1 ("Light1 intensity", Range(0,8)) = 0.6
_RimColor ("Rim color", Color) = (0.4, 0.4, 0.4, 1)
_RimWidth ("Rim width", Range(0,1)) = 0.7
_Direction ("Direction", Range(-1,1)) = 1
_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
}
SubShader {
Pass {
Tags {"Queue"="AlphaTest" "IgnoreProjector"="True"}
AlphaTest Greater [_Cutoff]
Lighting Off
Fog {Mode Off}
Offset 0,-1
Cull Back
ZWrite On
LOD 200
Stencil
{
Ref[_Stencil]
Comp[_StencilComp]
Pass[_StencilOp]
ReadMask[_StencilReadMask]
WriteMask[_StencilWriteMask]
}
CGPROGRAM
#include "UnityCG.cginc"
#pragma exclude_renderers flash xbox360 ps3
#pragma vertex vert
#pragma fragment frag
sampler2D _MainTex;
float4 _LightDir_0;
float4 _LightColor_0;
float _LightIntensity_0;
float4 _LightDir_1;
float4 _LightColor_1;
float _LightIntensity_1;
float4 _RimColor;
float _RimWidth;
float _Direction;
struct appdata {
float4 vertex : POSITION;
float3 normal : NORMAL;
float2 texcoord : TEXCOORD0;
};
struct v2f {
float4 pos : POSITION;
float2 texcoord : TEXCOORD0;
float4 posWorld : TEXCOORD1;
float3 normalDir : TEXCOORD2;
};
float4 _MainTex_ST;
v2f vert(appdata v) {
v2f o;
float4x4 modelMatrix = unity_ObjectToWorld;
o.posWorld = mul(modelMatrix, v.vertex);
o.pos = UnityObjectToClipPos(v.vertex);
o.normalDir = normalize(mul(modelMatrix, float4(v.normal, 0.0)).xyz);
o.texcoord = TRANSFORM_TEX(v.texcoord, _MainTex);
float3 viewDir = normalize(ObjSpaceViewDir(v.vertex));
float dotProduct = 1 - dot(v.normal, viewDir);
return o;
}
half4 frag(v2f i) :COLOR {
float3 normalDirection = normalize(i.normalDir);
float3 viewDirection = normalize(_WorldSpaceCameraPos - i.posWorld.xyz);
float3 cDir = float3(_Direction,1,1);
float3 lightDirection0 = normalize(-_LightDir_0 * cDir);
float3 NDotL0 = max(0.0, dot(normalDirection, lightDirection0));
float4 diffuseReflection0 = float4(_LightIntensity_0 * _LightColor_0.rgb * NDotL0, 1.0);
float3 lightDirection1 = normalize(-_LightDir_1 * cDir);
float3 NDotL1 = max(0.0, dot(normalDirection, lightDirection1));
float4 diffuseReflection1 = float4(_LightIntensity_1 * _LightColor_1.rgb * NDotL1, 1.0);
float dotProduct = 1 - dot(normalDirection, viewDirection);
float4 rim = smoothstep(1 - _RimWidth, 1.0, dotProduct) * _RimColor;
half4 tex = tex2D(_MainTex, i.texcoord);
half4 c = ((UNITY_LIGHTMODEL_AMBIENT + diffuseReflection0 + diffuseReflection1) * 2+ rim) * tex ;
c.a = tex.a;
return c;
}
ENDCG
}
}
FallBack "Diffuse"
}

View File

@@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 52a70f49fc8a3a64f813389512529ecb
timeCreated: 1547976858
licenseType: Free
ShaderImporter:
externalObjects: {}
defaultTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,95 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: U1NPC0040
m_Shader: {fileID: 10708, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON
m_LightmapFlags: 5
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 3c3eb5b459fd6d241afe2698a33268d9, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- PixelSnap: 0
- _BumpScale: 1
- _ColorMask: 15
- _Cutoff: 0.409
- _DetailNormalMapScale: 1
- _Direction: 1
- _DstBlend: 10
- _Glossiness: 0.5
- _LightIntensity_0: 0.8
- _LightIntensity_1: 0.6
- _Metallic: 0
- _Mode: 3
- _OcclusionStrength: 1
- _Parallax: 0.02
- _RimWidth: 0.7
- _Shininess: 0.078125
- _SrcBlend: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UVSec: 0
- _UseUIAlphaClip: 0
- _ZWrite: 0
m_Colors:
- _Color: {r: 0.588, g: 0.588, b: 0.588, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _LightColor_0: {r: 0.6196, g: 0.5255, b: 0.46275, a: 1}
- _LightColor_1: {r: 0.2196, g: 0.498, b: 0.61176, a: 1}
- _LightDir_0: {r: -0.44, g: -0.8, b: 0.2, a: 1}
- _LightDir_1: {r: -0.9, g: 0.5, b: 0.1, a: 1}
- _RimColor: {r: 0.4, g: 0.4, b: 0.4, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: f610d32095a9f6f48b1ada37f0b76da2
timeCreated: 1445931749
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,97 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: U1NPC0041
m_Shader: {fileID: 4800000, guid: 52a70f49fc8a3a64f813389512529ecb, type: 3}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON
m_LightmapFlags: 5
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 3c3eb5b459fd6d241afe2698a33268d9, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- PixelSnap: 0
- _BlendDstFactor: 10
- _BlendSrcFactor: 5
- _BumpScale: 1
- _ColorMask: 15
- _Cutoff: 0.409
- _DetailNormalMapScale: 1
- _Direction: 1
- _DstBlend: 10
- _Glossiness: 0.5
- _LightIntensity_0: 0.8
- _LightIntensity_1: 0.6
- _Metallic: 0
- _Mode: 3
- _OcclusionStrength: 1
- _Parallax: 0.02
- _RimWidth: 0.7
- _Shininess: 0.078125
- _SrcBlend: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UVSec: 0
- _UseUIAlphaClip: 0
- _ZWrite: 0
m_Colors:
- _Color: {r: 0.588, g: 0.588, b: 0.588, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _LightColor_0: {r: 0.6196, g: 0.5255, b: 0.46275, a: 1}
- _LightColor_1: {r: 0.2196, g: 0.498, b: 0.61176, a: 1}
- _LightDir_0: {r: -0.44, g: -0.8, b: 0.2, a: 1}
- _LightDir_1: {r: -0.9, g: 0.5, b: 0.1, a: 1}
- _RimColor: {r: 0.4, g: 0.4, b: 0.4, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}

View File

@@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: fae8465b71b8eca4fbea8d86dbc01e03
timeCreated: 1547976442
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant: