冯乐乐的《Unity Shader入门精要》附带项目,其中部分shader已经修改测试
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

457 lines
14 KiB

3 years ago
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.15294118, g: 0.15294118, b: 0.15294118, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &4
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 0
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_TemporalCoherenceThreshold: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 1
m_LightmapEditorSettings:
serializedVersion: 10
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 0
m_CompAOExponentDirect: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 1024
m_ReflectionCompression: 2
m_MixedBakeMode: 1
m_BakeBackend: 0
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVRFilteringMode: 0
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ShowResolutionOverlay: 1
m_LightingDataAsset: {fileID: 0}
m_UseShadowmask: 0
--- !u!196 &5
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &229233400
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 229233402}
- component: {fileID: 229233401}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &229233401
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 229233400}
m_Enabled: 1
serializedVersion: 8
m_Type: 1
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
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_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &229233402
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 229233400}
m_LocalRotation: {x: 0.40821794, y: -0.23456973, z: 0.109381676, w: 0.87542605}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &551376222
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalPosition.y
value: -2.42000008
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalPosition.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.x
value: .500000358
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.y
value: -.5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.z
value: -.5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.w
value: .499999672
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 126036, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_Name
value: Water (1)
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalScale.x
value: 5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalScale.y
value: 5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalScale.z
value: 2
objectReference: {fileID: 0}
- target: {fileID: 2376524, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 57fc40f5ad105437d8de81da052336b3, type: 2}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
m_IsPrefabAsset: 0
--- !u!1001 &619316248
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalPosition.y
value: -3.5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.x
value: 0.50000036
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.y
value: -0.5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.z
value: -0.5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.w
value: 0.49999967
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalScale.x
value: 5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalScale.y
value: 5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalScale.z
value: 5
objectReference: {fileID: 0}
- target: {fileID: 484802, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
m_IsPrefabAsset: 0
--- !u!1 &1838242752
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1838242757}
- component: {fileID: 1838242756}
- component: {fileID: 1838242755}
- component: {fileID: 1838242754}
- component: {fileID: 1838242753}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1838242753
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1838242752}
m_Enabled: 1
--- !u!124 &1838242754
Behaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1838242752}
m_Enabled: 1
--- !u!92 &1838242755
Behaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1838242752}
m_Enabled: 1
--- !u!20 &1838242756
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1838242752}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.9338235, g: 0.8963098, b: 0.83769464, a: 1}
m_projectionMatrixMode: 1
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1838242757
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1838242752}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &2082877631
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalPosition.y
value: -1.80999994
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalPosition.z
value: 2
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.x
value: .500000119
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.y
value: -.5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.z
value: -.5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalRotation.w
value: .49999994
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 126036, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_Name
value: Water (2)
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalScale.x
value: 5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalScale.y
value: 5
objectReference: {fileID: 0}
- target: {fileID: 431816, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_LocalScale.z
value: 2
objectReference: {fileID: 0}
- target: {fileID: 2376524, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 76371f92e1dc441f0a899228e460f75c, type: 2}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0c4e991678e1547f1bc8945831426126, type: 2}
m_IsPrefabAsset: 0