This commit is contained in:
2020-07-04 14:41:25 +08:00
parent 70c346d2c1
commit a8f02e4da5
3748 changed files with 587372 additions and 0 deletions

View File

@@ -0,0 +1,155 @@
fileFormatVersion: 2
guid: 1badfd6944994af44b5ddf21766a94bc
ModelImporter:
serializedVersion: 23
fileIDToRecycleName:
100000: Bip01 Footsteps
100002: Bip01 Head
100004: Bip01 HeadNub
100006: Bip01 L Calf
100008: Bip01 L Clavicle
100010: Bip01 L Foot
100012: Bip01 L Forearm
100014: Bip01 L Hand
100016: Bip01 L Thigh
100018: Bip01 L Toe0 - Ignore Me
100020: Bip01 L Toe0Nub
100022: Bip01 L UpperArm
100024: Bip01 Neck
100026: Bip01 Pelvis
100028: Bip01 R Calf
100030: Bip01 R Clavicle
100032: Bip01 R Foot
100034: Bip01 R Forearm
100036: Bip01 R Hand
100038: Bip01 R Thigh
100040: Bip01 R Toe0 - Ignore Me
100042: Bip01 R Toe0Nub
100044: Bip01 R UpperArm
100046: Bip01 Spine
100048: Bip01 Spine1
100050: //RootNode
100052: Orc
100054: Orc Biped
400000: Bip01 Footsteps
400002: Bip01 Head
400004: Bip01 HeadNub
400006: Bip01 L Calf
400008: Bip01 L Clavicle
400010: Bip01 L Foot
400012: Bip01 L Forearm
400014: Bip01 L Hand
400016: Bip01 L Thigh
400018: Bip01 L Toe0 - Ignore Me
400020: Bip01 L Toe0Nub
400022: Bip01 L UpperArm
400024: Bip01 Neck
400026: Bip01 Pelvis
400028: Bip01 R Calf
400030: Bip01 R Clavicle
400032: Bip01 R Foot
400034: Bip01 R Forearm
400036: Bip01 R Hand
400038: Bip01 R Thigh
400040: Bip01 R Toe0 - Ignore Me
400042: Bip01 R Toe0Nub
400044: Bip01 R UpperArm
400046: Bip01 Spine
400048: Bip01 Spine1
400050: //RootNode
400052: Orc
400054: Orc Biped
4300000: Orc
11100000: //RootNode
13700000: Bip01 Pelvis
externalObjects:
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: Orc
second: {fileID: 2100000, guid: e298e3c2b843d4f699319a8c1afe53fe, type: 2}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 0
animations:
legacyGenerateAnimations: 3
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 0.1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
indexFormat: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 0
previousCalculatedGlobalScale: 1
hasPreviousCalculatedGlobalScale: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 4
normalCalculationMode: 0
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 2
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 0
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 1
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,119 @@
fileFormatVersion: 2
guid: 12e164431dbd8714bbde0aeef453b764
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: Bip01 R Toe0 - Ignore Me
100002: Bip01 R UpperArm
100004: Bip01 R Clavicle
100006: Bip01 L Toe0 - Ignore Me
100008: Bip01 L UpperArm
100010: Bip01 L Clavicle
100012: Bip01 R Forearm
100014: //RootNode
100016: Bip01 R Hand
100018: Bip01 L Hand
100020: Bip01 L Forearm
100022: Bip01 HeadNub
100024: Bip01 Head
100026: Bip01 Neck
100028: Bip01 Spine1
100030: Bip01 R Toe0Nub
100032: Bip01 R Foot
100034: Bip01 R Calf
100036: Bip01 R Thigh
100038: Bip01 L Toe0Nub
100040: Bip01 L Foot
100042: Bip01 L Calf
100044: Bip01 L Thigh
100046: Bip01 Spine
100048: Bip01 Pelvis
100050: Bip01 Footsteps
100052: Orc Biped
100054: Orc
400000: Bip01 R Toe0 - Ignore Me
400002: Bip01 R UpperArm
400004: Bip01 R Clavicle
400006: Bip01 L Toe0 - Ignore Me
400008: Bip01 L UpperArm
400010: Bip01 L Clavicle
400012: Bip01 R Forearm
400014: //RootNode
400016: Bip01 R Hand
400018: Bip01 L Hand
400020: Bip01 L Forearm
400022: Bip01 HeadNub
400024: Bip01 Head
400026: Bip01 Neck
400028: Bip01 Spine1
400030: Bip01 R Toe0Nub
400032: Bip01 R Foot
400034: Bip01 R Calf
400036: Bip01 R Thigh
400038: Bip01 L Toe0Nub
400040: Bip01 L Foot
400042: Bip01 L Calf
400044: Bip01 L Thigh
400046: Bip01 Spine
400048: Bip01 Pelvis
400050: Bip01 Footsteps
400052: Orc Biped
400054: Orc
4300000: Orc
7400006: Take 001
11100000: //RootNode
13700000: Bip01 Pelvis
materials:
importMaterials: 0
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 3
bakeSimulation: 0
optimizeGameObjects: 0
motionNodeName:
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 2
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: .100000001
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 1
additionalBone: 0
userData:

View File

@@ -0,0 +1,199 @@
fileFormatVersion: 2
guid: d9a637e69b9f0a7449ee6b6e158ddd5b
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: Bip01 L Thigh
100002: Bip01 L Forearm
100004: Bip01 R Calf
100006: Bip01 Neck
100008: Bip01 R Toe0Nub
100010: Bip01 Spine1
100012: Bip01 R Thigh
100014: Bip01 Head
100016: Bip01 L Hand
100018: Bip01 L Toe0Nub
100020: //RootNode
100022: Bip01 L Foot
100024: Bip01 Spine
100026: Orc Biped
100028: Bip01 HeadNub
100030: Bip01 R Foot
100032: Bip01 R Forearm
100034: Bip01 L Calf
100036: Bip01 Footsteps
100038: Bip01 R Hand
100040: Bip01 Pelvis
100042: Orc
100044: Bip01 L UpperArm
100046: Bip01 L Toe0 - Ignore Me
100048: Bip01 R Toe0 - Ignore Me
100050: Bip01 R UpperArm
100052: Bip01 L Clavicle
100054: Bip01 R Clavicle
400000: Bip01 L Thigh
400002: Bip01 L Forearm
400004: Bip01 R Calf
400006: Bip01 Neck
400008: Bip01 R Toe0Nub
400010: Bip01 Spine1
400012: Bip01 R Thigh
400014: Bip01 Head
400016: Bip01 L Hand
400018: Bip01 L Toe0Nub
400020: //RootNode
400022: Bip01 L Foot
400024: Bip01 Spine
400026: Orc Biped
400028: Bip01 HeadNub
400030: Bip01 R Foot
400032: Bip01 R Forearm
400034: Bip01 L Calf
400036: Bip01 Footsteps
400038: Bip01 R Hand
400040: Bip01 Pelvis
400042: Orc
400044: Bip01 L UpperArm
400046: Bip01 L Toe0 - Ignore Me
400048: Bip01 R Toe0 - Ignore Me
400050: Bip01 R UpperArm
400052: Bip01 L Clavicle
400054: Bip01 R Clavicle
4300000: Orc
7400008: idle0
7400010: idle1
7400012: idle2
11100000: //RootNode
13700000: Bip01 Pelvis
materials:
importMaterials: 0
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 3
bakeSimulation: 0
optimizeGameObjects: 0
motionNodeName:
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations:
- serializedVersion: 16
name: idle0
takeName:
firstFrame: 1
lastFrame: 78
wrapMode: 0
orientationOffsetY: 0
level: 0
cycleOffset: 0
loop: 0
loopTime: 0
loopBlend: 0
loopBlendOrientation: 0
loopBlendPositionY: 0
loopBlendPositionXZ: 0
keepOriginalOrientation: 0
keepOriginalPositionY: 1
keepOriginalPositionXZ: 0
heightFromFeet: 0
mirror: 0
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
curves: []
events: []
transformMask: []
maskType: 0
maskSource: {instanceID: 0}
- serializedVersion: 16
name: idle1
takeName:
firstFrame: 78
lastFrame: 155
wrapMode: 0
orientationOffsetY: 0
level: 0
cycleOffset: 0
loop: 0
loopTime: 0
loopBlend: 0
loopBlendOrientation: 0
loopBlendPositionY: 0
loopBlendPositionXZ: 0
keepOriginalOrientation: 0
keepOriginalPositionY: 1
keepOriginalPositionXZ: 0
heightFromFeet: 0
mirror: 0
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
curves: []
events: []
transformMask: []
maskType: 0
maskSource: {instanceID: 0}
- serializedVersion: 16
name: idle2
takeName:
firstFrame: 155
lastFrame: 271
wrapMode: 0
orientationOffsetY: 0
level: 0
cycleOffset: 0
loop: 0
loopTime: 0
loopBlend: 0
loopBlendOrientation: 0
loopBlendPositionY: 0
loopBlendPositionXZ: 0
keepOriginalOrientation: 0
keepOriginalPositionY: 1
keepOriginalPositionXZ: 0
heightFromFeet: 0
mirror: 0
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
curves: []
events: []
transformMask: []
maskType: 0
maskSource: {instanceID: 0}
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: .100000001
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 1
additionalBone: 0
userData:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 128f91d28dd9341cda1430199cef68af
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,77 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: orc_col_1
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
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: 0}
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}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 0}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e298e3c2b843d4f699319a8c1afe53fe
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,47 @@
fileFormatVersion: 2
guid: 9dea8a158a69bed4fa95c4876b3a9c86
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: .25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 1024
textureSettings:
filterMode: -1
aniso: -1
mipBias: -1
wrapMode: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: .5, y: .5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 0
textureType: -1
buildTargetSettings: []
spriteSheet:
sprites: []
spritePackingTag:
userData:

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@@ -0,0 +1,47 @@
fileFormatVersion: 2
guid: 144032073d79c0644914a9fa2b44ce33
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 1
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 1
heightScale: .25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 1024
textureSettings:
filterMode: -1
aniso: -1
mipBias: -1
wrapMode: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: .5, y: .5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 0
textureType: 1
buildTargetSettings: []
spriteSheet:
sprites: []
spritePackingTag:
userData:

View File

@@ -0,0 +1,37 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Orc Skin
m_Shader: {fileID: 4800000, guid: a11c15d03723f5d4898122ca4176e6d4, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 5
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 2800000, guid: 144032073d79c0644914a9fa2b44ce33, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 9dea8a158a69bed4fa95c4876b3a9c86, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _Shininess: 0.13090834
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _SpecColor: {r: 1, g: 1, b: 1, a: 1}
--- !u!1002 &2100001
EditorExtensionImpl:
serializedVersion: 6

View File

@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 82ca0ae319ab64341b8336b689389d6b
NativeFormatImporter:
userData:

View File

@@ -0,0 +1,124 @@
Shader "NGUI/Examples/Orc Skin"
{
Properties
{
_Color ("Main Color", Color) = (1,1,1,1)
_SpecColor ("Specular Color", Color) = (0.5, 0.5, 0.5, 1)
_Shininess ("Shininess", Range (0.01, 1)) = 0.078125
_MainTex ("Diffuse (RGB), Specular (A)", 2D) = "white" {}
_BumpMap ("Normalmap", 2D) = "bump" {}
}
// Good quality or above
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 300
CGPROGRAM
#pragma surface surf PPL
sampler2D _MainTex;
sampler2D _BumpMap;
fixed4 _Color;
float _Shininess;
struct Input
{
float2 uv_MainTex;
};
// Forward lighting
half4 LightingPPL (SurfaceOutput s, half3 lightDir, half3 viewDir, half atten)
{
half3 nNormal = normalize(s.Normal);
half shininess = s.Gloss * 250.0 + 4.0;
#ifndef USING_DIRECTIONAL_LIGHT
lightDir = normalize(lightDir);
#endif
// Phong shading model
//half reflectiveFactor = max(0.0, dot(-viewDir, reflect(lightDir, nNormal)));
// Blinn-Phong shading model
half reflectiveFactor = max(0.0, dot(nNormal, normalize(lightDir + viewDir)));
half diffuseFactor = max(0.0, dot(nNormal, lightDir));
half specularFactor = pow(reflectiveFactor, shininess) * s.Specular;
half4 c;
c.rgb = (s.Albedo * diffuseFactor + _SpecColor.rgb * specularFactor) * _LightColor0.rgb;
c.rgb *= (atten * 2.0);
c.a = s.Alpha;
return c;
}
void surf (Input IN, inout SurfaceOutput o)
{
half4 tex = tex2D(_MainTex, IN.uv_MainTex) * _Color;
o.Albedo = tex.rgb;
o.Alpha = _Color.a;
o.Normal = UnpackNormal(tex2D(_BumpMap, IN.uv_MainTex));
o.Specular = tex.a;
o.Gloss = _Shininess;
}
ENDCG
}
// Simple quality -- drop the normal map
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 200
CGPROGRAM
#pragma surface surf PPL
sampler2D _MainTex;
fixed4 _Color;
float _Shininess;
struct Input
{
float2 uv_MainTex;
};
// Forward lighting
half4 LightingPPL (SurfaceOutput s, half3 lightDir, half3 viewDir, half atten)
{
half3 nNormal = normalize(s.Normal);
half shininess = s.Gloss * 250.0 + 4.0;
#ifndef USING_DIRECTIONAL_LIGHT
lightDir = normalize(lightDir);
#endif
// Phong shading model
half reflectiveFactor = max(0.0, dot(-viewDir, reflect(lightDir, nNormal)));
// Blinn-Phong shading model
//half reflectiveFactor = max(0.0, dot(nNormal, normalize(lightDir + viewDir)));
half diffuseFactor = max(0.0, dot(nNormal, lightDir));
half specularFactor = pow(reflectiveFactor, shininess) * s.Specular;
half4 c;
c.rgb = (s.Albedo * diffuseFactor + _SpecColor.rgb * specularFactor) * _LightColor0.rgb;
c.rgb *= (atten * 2.0);
c.a = s.Alpha;
return c;
}
void surf (Input IN, inout SurfaceOutput o)
{
half4 tex = tex2D(_MainTex, IN.uv_MainTex) * _Color;
o.Albedo = tex.rgb;
o.Alpha = _Color.a;
o.Specular = tex.a;
o.Gloss = _Shininess;
}
ENDCG
}
Fallback "Diffuse"
}

View File

@@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: a11c15d03723f5d4898122ca4176e6d4
ShaderImporter:
defaultTextures: []
userData:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 2e773be3c69e0ef49b8ae5ee2b644fbd
NativeFormatImporter:
userData: