场景美化

This commit is contained in:
彭浩 2025-04-24 17:58:40 +08:00
parent c8642b1afb
commit ed93ca372d
59 changed files with 1651 additions and 86 deletions

13
.idea/.idea.3DBody/.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,13 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# Rider 忽略的文件
/contentModel.xml
/projectSettingsUpdater.xml
/.idea.3DBody.iml
/modules.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

4
.idea/.idea.3DBody/.idea/encodings.xml generated Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

6
.idea/.idea.3DBody/.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -120,7 +120,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -88,7 +88,7 @@ Material:
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BlendOp: 0
- _BumpScale: 2
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
@ -108,7 +108,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -107,7 +107,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -120,7 +120,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -107,7 +107,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -107,7 +107,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.9
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -12,7 +12,6 @@ Material:
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHAPREMULTIPLY_ON
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords: []
m_LightmapFlags: 4
@ -89,7 +88,7 @@ Material:
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BlendModePreserveSpecular: 0
- _BlendOp: 0
- _BumpScale: 1
- _ClearCoatMask: 0
@ -114,7 +113,7 @@ Material:
- _Smoothness: 0
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlend: 5
- _SrcBlendAlpha: 1
- _Surface: 1
- _UVSec: 0

View File

@ -12,7 +12,6 @@ Material:
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHAPREMULTIPLY_ON
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords: []
m_LightmapFlags: 4
@ -89,7 +88,7 @@ Material:
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BlendModePreserveSpecular: 0
- _BlendOp: 0
- _BumpScale: 1
- _ClearCoatMask: 0
@ -114,7 +113,7 @@ Material:
- _Smoothness: 0
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlend: 5
- _SrcBlendAlpha: 1
- _Surface: 1
- _UVSec: 0

View File

@ -12,7 +12,6 @@ Material:
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHAPREMULTIPLY_ON
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords: []
m_LightmapFlags: 4
@ -89,7 +88,7 @@ Material:
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BlendModePreserveSpecular: 0
- _BlendOp: 0
- _BumpScale: 1
- _ClearCoatMask: 0
@ -114,7 +113,7 @@ Material:
- _Smoothness: 0
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlend: 5
- _SrcBlendAlpha: 1
- _Surface: 1
- _UVSec: 0

View File

@ -38,7 +38,7 @@ Material:
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Smoothness: 1
- _Smoothness: 0.6
m_Colors: []
m_BuildTextureStacks: []
--- !u!114 &7259690608283339364

View File

@ -108,7 +108,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -120,7 +120,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 0
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -24,8 +24,7 @@ Material:
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _NORMALMAP
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
@ -43,7 +42,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 2800000, guid: 6931c2578085b9349b082db733a4a4cf, type: 3}
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@ -121,7 +120,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.4
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
@ -131,8 +130,8 @@ Material:
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _BaseColor: {r: 0.93207544, g: 0.93207544, b: 0.93207544, a: 1}
- _Color: {r: 0.93207544, g: 0.93207544, b: 0.93207544, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: []

View File

@ -121,7 +121,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.4
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
@ -131,8 +131,8 @@ Material:
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _BaseColor: {r: 0.93333334, g: 0.93333334, b: 0.93333334, a: 1}
- _Color: {r: 0.93333334, g: 0.93333334, b: 0.93333334, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: []

View File

@ -121,7 +121,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.4
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
@ -131,8 +131,8 @@ Material:
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _BaseColor: {r: 0.93333334, g: 0.93333334, b: 0.93333334, a: 1}
- _Color: {r: 0.93333334, g: 0.93333334, b: 0.93333334, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: []

View File

@ -121,7 +121,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.4
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
@ -131,8 +131,8 @@ Material:
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _BaseColor: {r: 0.93333334, g: 0.93333334, b: 0.93333334, a: 1}
- _Color: {r: 0.93333334, g: 0.93333334, b: 0.93333334, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: []

View File

@ -120,7 +120,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -120,7 +120,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -120,7 +120,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -121,7 +121,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -108,7 +108,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -110,7 +110,7 @@ Material:
- _ReceiveShadows: 1
- _SampleGI: 0
- _Shininess: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessSource: 0
- _SmoothnessTextureChannel: 0
- _SpecSource: 0

View File

@ -121,7 +121,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -108,7 +108,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -108,7 +108,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -108,7 +108,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -121,7 +121,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -108,7 +108,7 @@ Material:
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 1
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

View File

@ -25,7 +25,7 @@ TextureImporter:
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
ignoreMipmapLimit: 1
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0

View File

@ -35,7 +35,7 @@ TextureImporter:
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 2
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0

View File

@ -43,7 +43,7 @@ ModelImporter:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: phong2
second: {fileID: 2100000, guid: a0769b498922a124f912c5c31901747d, type: 2}
second: {fileID: 2100000, guid: 2af855ba8bd3394429a4c766010fe705, type: 2}
materials:
materialImportMode: 2
materialName: 0
@ -111,7 +111,7 @@ ModelImporter:
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
normalImportMode: 1
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0

View File

@ -15,6 +15,41 @@ MonoBehaviour:
m_Active: 1
renderPassEvent: 500
clearStencil: 0
--- !u!114 &-5981737719356054098
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f62c9c65cf3354c93be831c8bc075510, type: 3}
m_Name: ScreenSpaceAmbientOcclusion
m_EditorClassIdentifier:
m_Active: 1
m_Settings:
AOMethod: 1
Downsample: 0
AfterOpaque: 0
Source: 1
NormalSamples: 1
Intensity: 1
DirectLightingStrength: 0.25
Radius: 0.035
Samples: 0
BlurQuality: 1
Falloff: 100
SampleCount: -1
m_BlueNoise256Textures:
- {fileID: 2800000, guid: 36f118343fc974119bee3d09e2111500, type: 3}
- {fileID: 2800000, guid: 4b7b083e6b6734e8bb2838b0b50a0bc8, type: 3}
- {fileID: 2800000, guid: c06cc21c692f94f5fb5206247191eeee, type: 3}
- {fileID: 2800000, guid: cb76dd40fa7654f9587f6a344f125c9a, type: 3}
- {fileID: 2800000, guid: e32226222ff144b24bf3a5a451de54bc, type: 3}
- {fileID: 2800000, guid: 3302065f671a8450b82c9ddf07426f3a, type: 3}
- {fileID: 2800000, guid: 56a77a3e8d64f47b6afe9e3c95cb57d5, type: 3}
m_Shader: {fileID: 4800000, guid: 0849e84e3d62649e8882e9d6f056a017, type: 3}
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
@ -32,7 +67,8 @@ MonoBehaviour:
hdrDebugViewPS: {fileID: 4800000, guid: 573620ae32aec764abd4d728906d2587, type: 3}
m_RendererFeatures:
- {fileID: -7137549924450841197}
m_RendererFeatureMap:
- {fileID: -5981737719356054098}
m_RendererFeatureMap: ae253aa23c99fcac
m_UseNativeRenderPass: 0
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
xrSystemData: {fileID: 11400000, guid: 60e1133243b97e347b653163a8c01b64, type: 2}

8
Assets/PiFu.meta Normal file
View File

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

View File

@ -0,0 +1,55 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: ShinShader
m_Shader: {fileID: 4800000, guid: dd69ac06a5c2b3a438a4828c53623d51, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _DetailNormal:
m_Texture: {fileID: 2800000, guid: c6ee1a864b8c3544599ef1c26bd7bdfd, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _KelemenLUT:
m_Texture: {fileID: 2800000, guid: a050a0ef3b2729e4e9b5eb76a4bed2e6, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 2bb2da8e25419884c8d5c8ee345c4444, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Normal:
m_Texture: {fileID: 2800000, guid: f1bb6311fb29e034c8fa9993da329801, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SSSLut:
m_Texture: {fileID: 2800000, guid: 49ff115e6de12f344bfc2eda7b889c31, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _DetailNormalScale: 0.02
- _NormalBlend: 0.504
- _NormalScale: 1
- _Roughness0: 10
- _Roughness1: 60
- _SSSY: 1
m_Colors: []
m_BuildTextureStacks: []

View File

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

8
Assets/PiFu/sources.meta Normal file
View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -0,0 +1,170 @@
fileFormatVersion: 2
guid: e20b64fa8592a7249a93009426f401d9
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 0
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 1
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 1
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Windows Store Apps
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@ -0,0 +1,134 @@
fileFormatVersion: 2
guid: 5b4be7b0313519b4a8f7c4c85a93ab8c
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 0
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 1
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Windows Store Apps
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -0,0 +1,158 @@
fileFormatVersion: 2
guid: e40aaa78c4ca5c24380af0569dd6dacd
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 0
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 1
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 1
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 1
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Windows Store Apps
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

@ -0,0 +1,179 @@
fileFormatVersion: 2
guid: c6ee1a864b8c3544599ef1c26bd7bdfd
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 0
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 2
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 1
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Windows Store Apps
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,222 @@
Shader "Unlit/ShinShaderT"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_SSSLut("SSSLut",2D)="white"{}
_KelemenLUT("KelemenLUT",2D)="white"{}
_Roughness0("Roughness0",float)=0.1
_Roughness1("Roughness1",float)=0.8
_Normal("Normal",2D)="bump"{}
_NormalScale("NormalScale",float)=1
_DetailNormal("DetailNormal",2D)="bump"{}
_DetailNormalScale("DetailNormalScale",float)=1
_NormalBlend("NormalBlend",range(0,1))=0.5
_Alpha("Alpha",Range(0,1))=1
}
SubShader
{
Tags { "Queue"="Transparent" }
LOD 100
Pass
{
Blend SrcAlpha OneMinusSrcAlpha
HLSLPROGRAM
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS //接受主光源阴影
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS_CASCADE //投射主光源的阴影
#pragma multi_compile _ _SHADOWS_SOFT //软阴影
#pragma multi_compile _ _ADDITIONAL_LIGHTS //附加光源
#pragma multi_compile_fragment _ _ADDITIONAL_LIGHT_SHADOWS
#pragma shader_feature _ALPHATEST_ON
#pragma vertex vert
#pragma fragment frag
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Shadows.hlsl"
//#include "UnityCG.cginc"
//#include "Lighting.cginc"
//#include "AutoLight.cginc"
struct appdata
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
float3 normal:NORMAL;
float4 tangent:TANGENT;
};
struct v2f
{
float2 uv : TEXCOORD0;
float4 vertex : SV_POSITION;
float3 worldNormal:TEXCOORD1;
float3 worldPos:TEXCOORD2;
float3 TtW0:TEXCOORD3;
float3 TtW1:TEXCOORD4;
float3 TtW2:TEXCOORD5;
float4 shadow:TEXCOORD6;
};
TEXTURE2D(_MainTex); SAMPLER(sampler_MainTex);
float4 _MainTex_ST;
float3 _SSSColor;
float _SSSY;
TEXTURE2D(_SSSLut);SAMPLER(sampler_SSSLut);
TEXTURE2D(_KelemenLUT);SAMPLER(sampler_KelemenLUT);
//sampler2D _KelemenLUT;
TEXTURE2D(_Normal);SAMPLER(sampler_Normal);
//sampler2D _Normal;
float _NormalScale;
float4 _Normal_TexSize;
TEXTURE2D(_DetailNormal);SAMPLER(sampler_DetailNormal);
//sampler2D _DetailNormal;
float _DetailNormalScale;
float _Alpha;
//sampler2D _Roughness;
float _Roughness0;
float _Roughness1;
//直接光的菲尼尔
half3 F_schilick(float F0,float VdH)
{
return F0 + (1 - F0) * pow( 1 - saturate(VdH), 5);
}
//间接光的菲尼尔
half F_inDir(float F0,float NdV ,float roughness)
{
return F0 + (max(1.0 - roughness, F0) - F0) * pow(1.0 - NdV, 5.0);
}
v2f vert (appdata v)
{
v2f o;
o.vertex = TransformObjectToHClip(v.vertex);
o.uv = TRANSFORM_TEX(v.uv, _MainTex);
o.worldPos=mul(UNITY_MATRIX_M,v.vertex);
o.worldNormal=mul(v.normal,(float3x3)unity_WorldToObject);
float3 worldTangent=TransformObjectToWorldDir(v.tangent.xyz);
float3 worldBinormal=cross(o.worldNormal,worldTangent)*v.tangent.w;
o.TtW0=float3(worldTangent.x,worldBinormal.x,o.worldNormal.x);
o.TtW1=float3(worldTangent.y,worldBinormal.y,o.worldNormal.y);
o.TtW2=float3(worldTangent.z,worldBinormal.z,o.worldNormal.z);
o.shadow=TransformWorldToShadowCoord(o.worldPos);
return o;
}
float4 frag (v2f i) : SV_Target
{
//曲率
float curvature=saturate(length(fwidth(i.worldNormal))*0.001/length(fwidth(i.worldPos))+0.4);
//return float4(curvature.xxx,1);
float3 nTs=UnpackNormalScale(SAMPLE_TEXTURE2D(_Normal,sampler_Normal,i.uv),_NormalScale);
float3 nTsM=UnpackNormalScale(SAMPLE_TEXTURE2D(_DetailNormal,sampler_DetailNormal,i.uv*4),_DetailNormalScale);
nTsM=normalize(float3(dot(i.TtW0.xyz,nTsM),dot(i.TtW1.xyz,nTsM),dot(i.TtW2.xyz,nTsM)));
nTs=normalize(float3(dot(i.TtW0.xyz,nTs),dot(i.TtW1.xyz,nTs),dot(i.TtW2.xyz,nTs)));
float3 nTsBlur=UnpackNormalScale(SAMPLE_TEXTURE2D_LOD(_Normal,sampler_Normal, i.uv,5),_NormalScale);
float3 nTsMBlur=UnpackNormalScale(SAMPLE_TEXTURE2D_LOD(_DetailNormal,sampler_DetailNormal, i.uv*4,5),_DetailNormalScale);
nTsMBlur=normalize(float3(dot(i.TtW0.xyz,nTsMBlur),dot(i.TtW1.xyz,nTsMBlur),dot(i.TtW2.xyz,nTsMBlur)));
nTsBlur=normalize(float3(dot(i.TtW0.xyz,nTsBlur),dot(i.TtW1.xyz,nTsBlur),dot(i.TtW2.xyz,nTsBlur)));
//得到正常法线和模糊后的发线
nTs=normalize(lerp(nTs,nTsM,0.5));
nTsBlur=normalize(lerp(nTsBlur,nTsMBlur,0.5));
half3 vDirWS = normalize(_WorldSpaceCameraPos.xyz - i.worldPos.xyz);
half3 lDirWS = normalize(_MainLightPosition);
half3 hDirWS = normalize(lDirWS + vDirWS);
//dot
//half ndotl=dot(nDirWS,lDirWS);
half ndoth=max(dot(nTs,hDirWS),0.0001);
half ndotl=max(dot(nTs,lDirWS),0.0001);
//Texture sample
half4 var_Albedo=SAMPLE_TEXTURE2D(_MainTex,sampler_MainTex,i.uv.xy);
//return float4(var_Albedo*0.03);
//直接光漫反射对rgb三个方向的ndl进行模糊分别采样rgb的SSS颜色
half rndotl=dot(nTsBlur,lDirWS)*0.5+0.5;//红色穿透性最高,所以模糊度最高
half gndotl=lerp(rndotl,dot(nTs,lDirWS)*0.5+0.5,0.3);
half bndotl=lerp(rndotl,dot(nTs,lDirWS)*0.5+0.5,0.7);//蓝色穿透性最弱,所以模糊度最低
float2 RUV=float2(rndotl,curvature);
float2 GUV=float2(gndotl,curvature);
float2 BUV=float2(bndotl,curvature);
//sss就是通过采样Lut得到的漫反射颜色
float3 sss;
sss.r=SAMPLE_TEXTURE2D(_SSSLut,sampler_SSSLut,RUV).r;
sss.g=SAMPLE_TEXTURE2D(_SSSLut,sampler_SSSLut,GUV).g;
sss.b=SAMPLE_TEXTURE2D(_SSSLut,sampler_SSSLut,BUV).b;
float ndl=dot(nTs,hDirWS)*0.5+0.5;
//漫反射要乘上ndl,sss散射采样预计算贴图不需要乘ndl,直接光结果要乘上灯光颜色
half3 dirDiffCol=sss*_MainLightColor*var_Albedo.rgb*ndl;//+var_Albedo.rgb*0.5*max(ndotl,0.3);
//float3 diff=sss*DisneyDiffuse(ndotv,ndl,ldotv,sqrt(0.1))*ndl*var_Albedo.rgb*_MainLightColor*PI;
//直接光高光,一层表达比较粗糙的高光,一层表达比较集中的高亮高光。
half lobe0=SAMPLE_TEXTURE2D(_KelemenLUT,sampler_KelemenLUT,float2(ndoth,_Roughness0*0.01)).r;
half lobe1=SAMPLE_TEXTURE2D(_KelemenLUT,sampler_KelemenLUT,float2(ndoth,_Roughness1*0.01)).r;
half PH0=pow(1*lobe0,5);
half PH1=pow(1*lobe1,5);
//f是为了遵循能量守恒高光大的地方漫反射少
float f=lerp(PH0,PH1,0.45)*PI;
half3 lobe0Col=(max(PH0,0));
half3 lobe1Col=(max(PH1,0));
float mainLight=MainLightRealtimeShadow(i.shadow);
//乘以ndotl防止背面出现高光直接光高光乘上ndhsss散射采样预计算贴图不需要乘直接光结果要乘上光照颜色
half3 specCol=lerp(lobe0Col,lobe1Col,0.45)*pow(ndotl,0.5)*PI;
half3 dirCol=(dirDiffCol*(1-f)+specCol)*mainLight;
//return float4((f).xxx,1);
float3 addColor=float3(0,0,0);
int addCount=GetAdditionalLightsCount();
//点光源漫反射和高光
for (int k=0;k<addCount;k++)
{
Light light=GetAdditionalLight(k,i.worldPos);
float3 L=light.direction;
half3 hDirWS = normalize(L + vDirWS);
half ndotl=max(dot(nTs,L),0.0001);
half ndoth=max(dot(nTs,hDirWS),0.0001);
half rndotl=dot(nTsBlur,L)*0.5+0.5;
float2 RUV=float2(rndotl,curvature);
float3 sss=SAMPLE_TEXTURE2D(_SSSLut,sampler_SSSLut,RUV);
half3 dirDiffCol=sss*light.color*var_Albedo.rgb*0.8+var_Albedo.rgb*0.5*max(ndotl,0.3)*light.distanceAttenuation*light.shadowAttenuation;
half vdoth=max(dot(vDirWS,hDirWS),0.0001);
half lobe0=SAMPLE_TEXTURE2D(_KelemenLUT,sampler_KelemenLUT,float2(ndoth,_Roughness0*0.011)).r;
half lobe1=SAMPLE_TEXTURE2D(_KelemenLUT,sampler_KelemenLUT,float2(ndoth,_Roughness1*0.01)).r;
half PH0=pow(2*lobe0,5);
half PH1=pow(2*lobe1,5);
half3 F=F_schilick(0.05,vdoth);
half3 lobe0Col=(max(PH0*F,0));
half3 lobe1Col=(max(PH1*F,0));
half3 specCol=lerp(lobe0Col,lobe1Col,0.3)*pow(ndotl,0.8)*light.distanceAttenuation*light.color*light.shadowAttenuation;
half3 dirCol=dirDiffCol*(1-F)+specCol*light.distanceAttenuation*light.color*light.shadowAttenuation;
addColor+=(specCol+dirCol);
}
//环境光
float aa=1;
BRDFData brdfData;
InitializeBRDFData(var_Albedo.rgb,0,1,0.6,aa, brdfData);
half3 ambient_contrib = SampleSH(float4(nTsBlur, 1));
float3 ambient = 0.3 * var_Albedo.rgb;// 随便乘个暗的系数
float3 iblDiffuse = max(half3(0, 0, 0), ambient.rgb + ambient_contrib);
float3 inssp= GlobalIllumination(brdfData,iblDiffuse,1,i.worldPos,nTsBlur,vDirWS);
half3 finaColor=inssp+dirCol;//+addColor;
return half4(finaColor,_Alpha);
}
ENDHLSL
}
//UsePass "Universal Render Pipeline/Lit/ShadowCaster"
}
}

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: ad2ec3da0e0d46742b73ac52a87e1965
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
preprocessorOverride: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,268 @@
Shader "Unlit/ShinShader_Plus"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_SSSLut("SSSLut",2D)="white"{}
_KelemenLUT("KelemenLUT",2D)="white"{}
_Roughness0("Roughness0",float)=0.1
_Roughness1("Roughness1",float)=0.8
_Normal("Normal",2D)="bump"{}
_NormalScale("NormalScale",float)=1
_DetailNormal("DetailNormal",2D)="bump"{}
_DetailNormalScale("DetailNormalScale",float)=1
_NormalBlend("NormalBlend",range(0,1))=0.5
}
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 100
Pass
{
HLSLPROGRAM
// 主光源和阴影
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS_CASCADE
#pragma multi_compile _ _SHADOWS_SOFT
// 多光源和阴影
#pragma multi_compile _ _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHTS
#pragma multi_compile _ _ADDITIONAL_LIGHT_SHADOWS
#pragma multi_compile _ _ADDITIONAL_LIGHTS //附加光源
// forward+模式
#pragma multi_compile _ _FORWARD_PLUS
// #pragma multi_compile _ _MAIN_LIGHT_SHADOWS //接受主光源阴影
// #pragma multi_compile _ _MAIN_LIGHT_SHADOWS_CASCADE //投射主光源的阴影
// #pragma multi_compile _ _SHADOWS_SOFT //软阴影
// #pragma multi_compile _ _ADDITIONAL_LIGHTS //附加光源
// #pragma multi_compile_fragment _ _ADDITIONAL_LIGHT_SHADOWS
// #pragma shader_feature _ALPHATEST_ON
// //#pragma multi_compile _ _FORWARD_PLUS
//
// #pragma multi_compile_fragment _ _LIGHT_LAYERS
// #pragma multi_compile _ _FORWARD_PLUS
// #pragma multi_compile_fragment _ _WRITE_RENDERING_LAYERS
// #pragma multi_compile_fragment _ LOD_FADE_CROSSFADE
// #pragma instancing_options renderinglayer
#pragma vertex vert
#pragma fragment frag
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Shadows.hlsl"
//#include "UnityCG.cginc"
//#include "Lighting.cginc"
//#include "AutoLight.cginc"
struct appdata
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
float3 normal:NORMAL;
float4 tangent:TANGENT;
};
struct v2f
{
float2 uv : TEXCOORD0;
float4 vertex : SV_POSITION;
float3 worldNormal:TEXCOORD1;
float3 worldPos:TEXCOORD2;
float3 TtW0:TEXCOORD3;
float3 TtW1:TEXCOORD4;
float3 TtW2:TEXCOORD5;
float4 shadow:TEXCOORD6;
};
TEXTURE2D(_MainTex); SAMPLER(sampler_MainTex);
float4 _MainTex_ST;
float3 _SSSColor;
float _SSSY;
TEXTURE2D(_SSSLut);SAMPLER(sampler_SSSLut);
TEXTURE2D(_KelemenLUT);SAMPLER(sampler_KelemenLUT);
//sampler2D _KelemenLUT;
TEXTURE2D(_Normal);SAMPLER(sampler_Normal);
//sampler2D _Normal;
float _NormalScale;
float4 _Normal_TexSize;
TEXTURE2D(_DetailNormal);SAMPLER(sampler_DetailNormal);
//sampler2D _DetailNormal;
float _DetailNormalScale;
sampler2D _Roughness;
float _Roughness0;
float _Roughness1;
//直接光的菲尼尔
half3 F_schilick(float F0,float VdH)
{
return F0 + (1 - F0) * pow( 1 - saturate(VdH), 5);
}
//间接光的菲尼尔
half F_inDir(float F0,float NdV ,float roughness)
{
return F0 + (max(1.0 - roughness, F0) - F0) * pow(1.0 - NdV, 5.0);
}
v2f vert (appdata v)
{
v2f o;
o.vertex = TransformObjectToHClip(v.vertex);
o.uv = TRANSFORM_TEX(v.uv, _MainTex);
o.worldPos=mul(UNITY_MATRIX_M,v.vertex);
o.worldNormal=mul(v.normal,(float3x3)unity_WorldToObject);
float3 worldTangent=TransformObjectToWorldDir(v.tangent.xyz);
float3 worldBinormal=cross(o.worldNormal,worldTangent)*v.tangent.w;
o.TtW0=float3(worldTangent.x,worldBinormal.x,o.worldNormal.x);
o.TtW1=float3(worldTangent.y,worldBinormal.y,o.worldNormal.y);
o.TtW2=float3(worldTangent.z,worldBinormal.z,o.worldNormal.z);
o.shadow=TransformWorldToShadowCoord(o.worldPos);
return o;
}
float4 frag (v2f i) : SV_Target
{
//曲率
float curvature=saturate(length(fwidth(i.worldNormal))*0.05/length(fwidth(i.worldPos))+0.5);
//return float4(curvature.xxx,1);
float3 nTs=UnpackNormalScale(SAMPLE_TEXTURE2D(_Normal,sampler_Normal,i.uv),_NormalScale);
float3 nTsM=UnpackNormalScale(SAMPLE_TEXTURE2D(_DetailNormal,sampler_DetailNormal,i.uv*4),_DetailNormalScale);
nTsM=normalize(float3(dot(i.TtW0.xyz,nTsM),dot(i.TtW1.xyz,nTsM),dot(i.TtW2.xyz,nTsM)));
nTs=normalize(float3(dot(i.TtW0.xyz,nTs),dot(i.TtW1.xyz,nTs),dot(i.TtW2.xyz,nTs)));
float3 nTsBlur=UnpackNormalScale(SAMPLE_TEXTURE2D_LOD(_Normal,sampler_Normal, i.uv,5),_NormalScale);
float3 nTsMBlur=UnpackNormalScale(SAMPLE_TEXTURE2D_LOD(_DetailNormal,sampler_DetailNormal, i.uv*4,5),_DetailNormalScale);
nTsMBlur=normalize(float3(dot(i.TtW0.xyz,nTsMBlur),dot(i.TtW1.xyz,nTsMBlur),dot(i.TtW2.xyz,nTsMBlur)));
nTsBlur=normalize(float3(dot(i.TtW0.xyz,nTsBlur),dot(i.TtW1.xyz,nTsBlur),dot(i.TtW2.xyz,nTsBlur)));
//得到正常法线和模糊后的发线
nTs=normalize(lerp(nTs,nTsM,0.5));
nTsBlur=normalize(lerp(nTsBlur,nTsMBlur,0.5));
half3 vDirWS = normalize(_WorldSpaceCameraPos.xyz - i.worldPos.xyz);
half3 lDirWS = normalize(_MainLightPosition);
half3 hDirWS = normalize(lDirWS + vDirWS);
half3 rDirWS = reflect(-vDirWS, nTsBlur);
//dot
//half ndotl=dot(nDirWS,lDirWS);
half ndoth=max(dot(nTs,hDirWS),0.0001);
half vdoth=max(dot(vDirWS,hDirWS),0.0001);
half ndotl=max(dot(nTs,lDirWS),0.0001);
//Texture sample
half4 var_Albedo=SAMPLE_TEXTURE2D(_MainTex,sampler_MainTex,i.uv.xy);
//return float4(var_Albedo*0.03);
//直接光漫反射对rgb三个方向的ndl进行模糊分别采样rgb的SSS颜色
half rndotl=dot(nTsBlur,lDirWS)*0.5+0.5;//红色穿透性最高,所以模糊度最高
half gndotl=lerp(rndotl,dot(nTs,lDirWS)*0.5+0.5,0.3);
half bndotl=lerp(rndotl,dot(nTs,lDirWS)*0.5+0.5,0.6);//蓝色穿透性最弱,所以模糊度最低
float2 RUV=float2(rndotl,curvature);
float2 GUV=float2(gndotl,curvature);
float2 BUV=float2(bndotl,curvature);
//sss就是通过采样Lut得到的漫反射颜色
float3 sss;
sss.r=SAMPLE_TEXTURE2D(_SSSLut,sampler_SSSLut,RUV).r;
sss.g=SAMPLE_TEXTURE2D(_SSSLut,sampler_SSSLut,GUV).g;
sss.b=SAMPLE_TEXTURE2D(_SSSLut,sampler_SSSLut,BUV).b;
//half3 radiance =sss*_MainLightColor+0.6;
//return float4(sss*_MainLightColor,1);
//漫反射要乘上ndl,sss散射采样预计算贴图不需要乘ndl,直接光结果要乘上灯光颜色
half3 dirDiffCol=sss*_MainLightColor*var_Albedo.rgb*0.8+var_Albedo.rgb*0.5*max(ndotl,0.3);
//直接光高光,一层表达比较粗糙的高光,一层表达比较集中的高亮高光。
//kelemann
//float sp=tex2D(_Specular,i.uv).r;
half lobe0=SAMPLE_TEXTURE2D(_KelemenLUT,sampler_KelemenLUT,float2(ndoth,_Roughness0*0.011)).r;
half lobe1=SAMPLE_TEXTURE2D(_KelemenLUT,sampler_KelemenLUT,float2(ndoth,_Roughness1*0.01)).r;
//return float4(lobe0.xxx,1);
half PH0=pow(3.3*lobe0,5);
half PH1=pow(3.3*lobe1,5);
half3 F=F_schilick(0.05,vdoth);
//return float4(F,1);
//return float4(lobe0.xxx,1);
half3 lobe0Col=(max(PH0*F,0));
half3 lobe1Col=(max(PH1*F,0));
float mainLight=MainLightRealtimeShadow(i.shadow);
//乘以ndotl防止背面出现高光直接光高光乘上ndhsss散射采样预计算贴图不需要乘直接光结果要乘上光照颜色
half3 specCol=lerp(lobe0Col,lobe1Col,0.3)*pow(ndotl,0.8)*mainLight;
half3 dirCol=(dirDiffCol*(1-F)+specCol*_MainLightColor)*mainLight;
//return float4(specCol+dirCol,1);
float3 addColor=float3(0,0,0);
//多光源技术适配forward+管线
uint lightsCountPlus = GetAdditionalLightsCount();
InputData inputData = (InputData)0;
inputData.positionWS = i.worldPos;
inputData.normalWS = i.worldNormal;
inputData.viewDirectionWS = normalize(_WorldSpaceCameraPos.xyz - i.worldPos);
inputData.shadowCoord = TransformWorldToShadowCoord(i.worldPos);
// 修正距离剔除
inputData.normalizedScreenSpaceUV = GetNormalizedScreenSpaceUV(i.vertex);
LIGHT_LOOP_BEGIN(lightsCountPlus)
Light light=GetAdditionalLight(lightIndex,i.worldPos,0);
float3 L=light.direction;
half3 hDirWS = normalize(L + vDirWS);
half ndotl=dot(nTs,L)*0.5+0.5;
half ndoth=max(dot(nTs,hDirWS),0.0001);
half rndotl=dot(nTsBlur,L)*0.5+0.5;
float2 RUV=float2(rndotl,curvature);
float3 sss=SAMPLE_TEXTURE2D(_SSSLut,sampler_SSSLut,RUV);
half3 dirDiffCol=ndotl*light.color*(light.distanceAttenuation*light.shadowAttenuation*(var_Albedo.rgb*0.5+sss*var_Albedo.rgb*0.5));//*light.shadowAttenuation;//+var_Albedo.rgb*0.2;
//return float4(dirDiffCol,1);
half vdoth=max(dot(vDirWS,hDirWS),0.0001);
half lobe0=SAMPLE_TEXTURE2D(_KelemenLUT,sampler_KelemenLUT,float2(ndoth,_Roughness0*0.011)).r;
half lobe1=SAMPLE_TEXTURE2D(_KelemenLUT,sampler_KelemenLUT,float2(ndoth,_Roughness1*0.01)).r;
half PH0=pow(2*lobe0,5);
half PH1=pow(2*lobe1,5);
half3 F=F_schilick(0.05,vdoth);
half3 lobe0Col=(max(PH0*F,0));
half3 lobe1Col=(max(PH1*F,0));
half3 specCol=lerp(lobe0Col,lobe1Col,0.3)*pow(ndotl,0.8)*light.distanceAttenuation*light.color*light.shadowAttenuation;
half3 dirCol=dirDiffCol*(1-F);//*light.distanceAttenuation*light.color*light.shadowAttenuation;
addColor+=(specCol+dirCol);
LIGHT_LOOP_END
//间接光漫反射
half rndotv=max(dot(nTsBlur,vDirWS),0.001);
half3 inDirDiff=SampleSH(half4(nTsBlur,1));
half3 kSpec=F_inDir(0.010,rndotv,0.5);
//return float4(kSpec,1);
half3 kDiff=saturate(1.0-kSpec);
half3 inDirDiffCol=inDirDiff*var_Albedo.rgb*kDiff;
//间接光镜面反射
half mip1=0.4*(1.7-0.7*0.4)*UNITY_SPECCUBE_LOD_STEPS;
half4 inDirCube1=SAMPLE_TEXTURECUBE_LOD(unity_SpecCube0,samplerunity_SpecCube0,float4(rDirWS,1),mip1); //cubemap采样
half3 inDirCube=saturate(DecodeHDREnvironment(inDirCube1,unity_SpecCube0_HDR));
half3 inDirSpecFac=inDirCube*kSpec;//(kSpec*lut.r+lut.g);
half3 inDirSpecCol=inDirSpecFac;//减少背光spec
half3 inDirCol=inDirDiffCol+inDirSpecCol;
half3 finaColor=inDirCol+dirCol+addColor;
return half4(finaColor,1.0);
}
ENDHLSL
}
UsePass "Universal Render Pipeline/Lit/ShadowCaster"
}
}

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 566d35d5a51b7ec4d8e529300422125c
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
preprocessorOverride: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -2,6 +2,7 @@ Shader "Unlit/ShinShader"
{
Properties
{
_Color("Color",color)=(1,1,1,1)
_MainTex ("Texture", 2D) = "white" {}
_SSSLut("SSSLut",2D)="white"{}
@ -63,6 +64,7 @@ Shader "Unlit/ShinShader"
float4 _MainTex_ST;
float3 _SSSColor;
float _SSSY;
float4 _Color;
TEXTURE2D(_SSSLut);SAMPLER(sampler_SSSLut);
TEXTURE2D(_KelemenLUT);SAMPLER(sampler_KelemenLUT);
//sampler2D _KelemenLUT;
@ -114,11 +116,11 @@ Shader "Unlit/ShinShader"
float curvature=saturate(length(fwidth(i.worldNormal))*0.001/length(fwidth(i.worldPos))+0.4);
//return float4(curvature.xxx,1);
float3 nTs=UnpackNormalScale(SAMPLE_TEXTURE2D(_Normal,sampler_Normal,i.uv),_NormalScale);
float3 nTsM=UnpackNormalScale(SAMPLE_TEXTURE2D(_DetailNormal,sampler_DetailNormal,i.uv*4),_DetailNormalScale);
float3 nTsM=UnpackNormalScale(SAMPLE_TEXTURE2D(_DetailNormal,sampler_DetailNormal,i.uv*40),_DetailNormalScale);
nTsM=normalize(float3(dot(i.TtW0.xyz,nTsM),dot(i.TtW1.xyz,nTsM),dot(i.TtW2.xyz,nTsM)));
nTs=normalize(float3(dot(i.TtW0.xyz,nTs),dot(i.TtW1.xyz,nTs),dot(i.TtW2.xyz,nTs)));
float3 nTsBlur=UnpackNormalScale(SAMPLE_TEXTURE2D_LOD(_Normal,sampler_Normal, i.uv,5),_NormalScale);
float3 nTsMBlur=UnpackNormalScale(SAMPLE_TEXTURE2D_LOD(_DetailNormal,sampler_DetailNormal, i.uv*4,5),_DetailNormalScale);
float3 nTsMBlur=UnpackNormalScale(SAMPLE_TEXTURE2D_LOD(_DetailNormal,sampler_DetailNormal, i.uv*40,5),_DetailNormalScale);
nTsMBlur=normalize(float3(dot(i.TtW0.xyz,nTsMBlur),dot(i.TtW1.xyz,nTsMBlur),dot(i.TtW2.xyz,nTsMBlur)));
nTsBlur=normalize(float3(dot(i.TtW0.xyz,nTsBlur),dot(i.TtW1.xyz,nTsBlur),dot(i.TtW2.xyz,nTsBlur)));
//得到正常法线和模糊后的发线
@ -209,9 +211,9 @@ Shader "Unlit/ShinShader"
float3 ambient = 0.3 * var_Albedo.rgb;// 随便乘个暗的系数
float3 iblDiffuse = max(half3(0, 0, 0), ambient.rgb + ambient_contrib);
float3 inssp= GlobalIllumination(brdfData,iblDiffuse,1,i.worldPos,nTsBlur,vDirWS);
half3 finaColor=inssp+dirCol;//+addColor;
half3 finaColor=inssp+dirCol+addColor*0.8;
return half4(finaColor,1.0);
return half4(finaColor*0.35,1.0);
}
ENDHLSL

View File

@ -30,11 +30,11 @@ namespace Turing.Samples
{
// this._stylusTarget = TuringProvider.StylusTarget;
if (TuringProvider.DisplaySize !=
TuringDisplay.GetSize(TuringDisplay.Profile.Size27UHD))
{
}
// if (TuringProvider.DisplaySize !=
// TuringDisplay.GetSize(TuringDisplay.Profile.Size27UHD))
// {
//
// }
}
else
{

View File

@ -1217,7 +1217,7 @@ MonoBehaviour:
m_Bits: 1
m_VolumeTrigger: {fileID: 0}
m_VolumeFrameworkUpdateModeOption: 2
m_RenderPostProcessing: 0
m_RenderPostProcessing: 1
m_Antialiasing: 0
m_AntialiasingQuality: 2
m_StopNaN: 0

View File

@ -7107,7 +7107,7 @@ Light:
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Intensity: 0.3
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
@ -7141,7 +7141,7 @@ Light:
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_RenderMode: 1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
@ -7165,13 +7165,13 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 203844586}
serializedVersion: 2
m_LocalRotation: {x: 0.08682413, y: 0.08682413, z: -0.0075961305, w: 0.99240386}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalRotation: {x: -0.0006844959, y: 0.99616396, z: -0.0871531, w: -0.007823821}
m_LocalPosition: {x: -0.0003823638, y: 2.9999619, z: 0.000058725476}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 10, y: 10, z: 0}
m_Father: {fileID: 731027034}
m_LocalEulerAnglesHint: {x: 10, y: 180.9, z: 0}
--- !u!1 &204198432 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: -521820879441198205, guid: 5755b628fc33efd4bb8984f770e4e884, type: 3}
@ -20740,6 +20740,41 @@ MeshCollider:
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 7404722305421463420, guid: 3a238d0d1a934684a8db230279184d7d, type: 3}
--- !u!1 &731027033
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 731027034}
m_Layer: 0
m_Name: GameObject
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &731027034
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 731027033}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0.9786886, z: -0, w: -0.20535019}
m_LocalPosition: {x: 0.0003823638, y: 0.000038146973, z: -0.000058725476}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 203844589}
- {fileID: 1679552032}
- {fileID: 1584068656}
- {fileID: 2074968521}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 203.7, z: 0}
--- !u!1 &732414061 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: -7390907164615310669, guid: 3a238d0d1a934684a8db230279184d7d, type: 3}
@ -31145,7 +31180,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1160234425}
m_Enabled: 0
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 172515602e62fb746b5d573b38a5fe58, type: 3}
m_Name:
@ -45258,13 +45293,13 @@ Light:
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Intensity: 0.3
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 0
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
@ -45292,7 +45327,7 @@ Light:
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_RenderMode: 1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
@ -45302,7 +45337,7 @@ Light:
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_UseColorTemperature: 1
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
@ -45316,13 +45351,13 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1584068653}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0.9961947, z: -0.08715578, w: 0}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalRotation: {x: 0.06162845, y: 0.70441604, z: -0.06162845, w: 0.70441604}
m_LocalPosition: {x: -0.0003823638, y: 2.9999619, z: 0.000058725476}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 10, y: 180, z: 0}
m_Father: {fileID: 731027034}
m_LocalEulerAnglesHint: {x: 10, y: 90, z: 0}
--- !u!1 &1591108661 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 5217488183841692923, guid: 3a238d0d1a934684a8db230279184d7d, type: 3}
@ -47380,6 +47415,124 @@ MeshCollider:
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: -3115753506515662803, guid: b177fc45bd8199d4fa040010dc01a251, type: 3}
--- !u!1 &1679552029
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1679552032}
- component: {fileID: 1679552031}
- component: {fileID: 1679552030}
m_Layer: 0
m_Name: Directional Light (3)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1679552030
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1679552029}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Version: 3
m_UsePipelineSettings: 1
m_AdditionalLightsShadowResolutionTier: 2
m_LightLayerMask: 1
m_RenderingLayers: 1
m_CustomShadowLayers: 0
m_ShadowLayerMask: 1
m_ShadowRenderingLayers: 1
m_LightCookieSize: {x: 1, y: 1}
m_LightCookieOffset: {x: 0, y: 0}
m_SoftShadowQuality: 3
--- !u!108 &1679552031
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1679552029}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 0.3
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 1
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &1679552032
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1679552029}
serializedVersion: 2
m_LocalRotation: {x: 0.08715578, y: 0, z: 0, w: 0.9961947}
m_LocalPosition: {x: -0.0003823638, y: 2.9999619, z: 0.000058725476}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 731027034}
m_LocalEulerAnglesHint: {x: 10, y: 0, z: 0}
--- !u!1 &1681329074 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: -4470416288681103029, guid: 88b2298eef6aa80459861c3c8b901f67, type: 3}
@ -63080,6 +63233,124 @@ MeshCollider:
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 9021783368197154456, guid: 23811947e95a7604389efed8ff2473ae, type: 3}
--- !u!1 &2074968518
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2074968521}
- component: {fileID: 2074968520}
- component: {fileID: 2074968519}
m_Layer: 0
m_Name: Directional Light (2)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &2074968519
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2074968518}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Version: 3
m_UsePipelineSettings: 1
m_AdditionalLightsShadowResolutionTier: 2
m_LightLayerMask: 1
m_RenderingLayers: 1
m_CustomShadowLayers: 0
m_ShadowLayerMask: 1
m_ShadowRenderingLayers: 1
m_LightCookieSize: {x: 1, y: 1}
m_LightCookieOffset: {x: 0, y: 0}
m_SoftShadowQuality: 3
--- !u!108 &2074968520
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2074968518}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 0.3
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 0
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &2074968521
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2074968518}
serializedVersion: 2
m_LocalRotation: {x: -0.06162845, y: 0.70441604, z: -0.06162845, w: -0.70441604}
m_LocalPosition: {x: -0.0003823638, y: 2.9999619, z: 0.000058725476}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 731027034}
m_LocalEulerAnglesHint: {x: 10, y: 270, z: 0}
--- !u!1 &2076177894 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 2653497287218598335, guid: f7442974e616de94f96b97cd045fd94e, type: 3}
@ -64905,8 +65176,7 @@ MeshCollider:
SceneRoots:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 203844589}
- {fileID: 1584068656}
- {fileID: 731027034}
- {fileID: 1160234427}
- {fileID: 1645790457}
- {fileID: 1670551018}

View File

@ -12,13 +12,13 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 66f335fb1ffd8684294ad653bf1c7564, type: 3}
m_Name: ColorAdjustments
m_EditorClassIdentifier:
active: 0
active: 1
postExposure:
m_OverrideState: 1
m_Value: 1
contrast:
m_OverrideState: 1
m_Value: 5
m_Value: 0
colorFilter:
m_OverrideState: 0
m_Value: {r: 1, g: 1, b: 1, a: 1}
@ -27,7 +27,7 @@ MonoBehaviour:
m_Value: 0
saturation:
m_OverrideState: 1
m_Value: 30
m_Value: 20
--- !u!114 &-32820517437979890
MonoBehaviour:
m_ObjectHideFlags: 3
@ -40,7 +40,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0b2db86121404754db890f4c8dfe81b2, type: 3}
m_Name: Bloom
m_EditorClassIdentifier:
active: 0
active: 1
skipIterations:
m_OverrideState: 0
m_Value: 1
@ -103,7 +103,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 97c23e3b12dc18c42a140437e53d3951, type: 3}
m_Name: Tonemapping
m_EditorClassIdentifier:
active: 0
active: 1
mode:
m_OverrideState: 1
m_Value: 2

View File

@ -26,7 +26,7 @@ MonoBehaviour:
m_SupportsTerrainHoles: 1
m_SupportsHDR: 1
m_HDRColorBufferPrecision: 0
m_MSAA: 2
m_MSAA: 8
m_RenderScale: 1
m_UpscalingFilter: 0
m_FsrOverrideSharpness: 0
@ -35,7 +35,7 @@ MonoBehaviour:
m_LODCrossFadeDitheringType: 1
m_ShEvalMode: 0
m_MainLightRenderingMode: 1
m_MainLightShadowsSupported: 1
m_MainLightShadowsSupported: 0
m_MainLightShadowmapResolution: 2048
m_AdditionalLightsRenderingMode: 1
m_AdditionalLightsPerObjectLimit: 4

View File

@ -120,7 +120,7 @@ QualitySettings:
globalTextureMipmapLimit: 0
textureMipmapLimitSettings: []
anisotropicTextures: 1
antiAliasing: 2
antiAliasing: 8
softParticles: 0
softVegetation: 1
realtimeReflectionProbes: 1