浏览代码

Graphics: Adding XRay Dither Effect for Checkpoints

/demo-ssao-2020.1
andytouch 5 年前
当前提交
678137e6
共有 17 个文件被更改,包括 471 次插入20 次删除
  1. 7
      Assets/Data/UniversalRP/BoatDemoRenderer.asset
  2. 89
      Assets/Data/UniversalRP/BoatRetroRenderer.asset
  3. 3
      Assets/Data/UniversalRP/PipelineAsset_High.asset
  4. 2
      Assets/Objects/misc/checkpoint.prefab
  5. 2
      Assets/ScriptableRenderFeatures/RetroPass/Mat_Pass_Retro.mat
  6. 4
      Assets/ScriptableRenderFeatures/SobelOutlinePass/Mat_Pass_OutlineSobel.mat
  7. 2
      Assets/ScriptableRenderFeatures/ToonPass/Mat_Pass_ToonPosterize.mat
  8. 59
      Assets/scenes/demo_Island.unity
  9. 4
      ProjectSettings/QualitySettings.asset
  10. 36
      Assets/Data/UniversalRP/BoatXRayRenderer.asset
  11. 8
      Assets/Data/UniversalRP/BoatXRayRenderer.asset.meta
  12. 8
      Assets/ScriptableRenderFeatures/DitherPass.meta
  13. 97
      Assets/ScriptableRenderFeatures/DitherPass/Dither.mat
  14. 8
      Assets/ScriptableRenderFeatures/DitherPass/Dither.mat.meta
  15. 152
      Assets/ScriptableRenderFeatures/DitherPass/ScreenDitherShader.shadergraph
  16. 10
      Assets/ScriptableRenderFeatures/DitherPass/ScreenDitherShader.shadergraph.meta

7
Assets/Data/UniversalRP/BoatDemoRenderer.asset


m_Name: BoatDemoRenderer
m_EditorClassIdentifier:
m_RendererFeatures:
- {fileID: 770174969183694509}
- {fileID: 1493603568523985814}
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
shaders:
blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}

passOperation: 2
failOperation: 0
zFailOperation: 0
--- !u!114 &770174969183694509
m_ShadowTransparentReceive: 1
--- !u!114 &1493603568523985814
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}

m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: adbe377f4f72c497faee64bc3f0580b9, type: 3}
m_Name: WaterSystemPass
m_Name: WaterSystem
m_EditorClassIdentifier:
settings:
causticScale: 0.25

89
Assets/Data/UniversalRP/BoatRetroRenderer.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-4878736563600351927
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: 804bf49869d3b4315a850958d8530433, type: 3}
m_Name: NewBlit
m_EditorClassIdentifier:
settings:
Event: 500
blitMaterial: {fileID: 2100000, guid: 03d7b241c3fee9946a8c70aa8ffc18f1, type: 2}
blitMaterialPassIndex: -1
destination: 0
textureId: _BlitPassTexture
--- !u!114 &-3189639346213710365
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: 804bf49869d3b4315a850958d8530433, type: 3}
m_Name: Toon Pass
m_EditorClassIdentifier:
settings:
Event: 500
blitMaterial: {fileID: 2100000, guid: bb822321860d6af44a4abeb570b648d1, type: 2}
blitMaterialPassIndex: -1
destination: 0
textureId: _BlitPassTexture
--- !u!114 &-1317020491931952740
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: 804bf49869d3b4315a850958d8530433, type: 3}
m_Name: Outline Pass
m_EditorClassIdentifier:
settings:
Event: 500
blitMaterial: {fileID: 2100000, guid: 40085b480ff98a944af12796f052956e, type: 2}
blitMaterialPassIndex: -1
destination: 0
textureId: _BlitPassTexture
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0

m_Script: {fileID: 11500000, guid: de640fe3d0db1804a85f9fc8f5cadab6, type: 3}
m_Name: BoatRetroRenderer
m_EditorClassIdentifier:
m_RendererFeatures: []
postProcessData: {fileID: 0}
m_RendererFeatures:
- {fileID: 4860357971611268930}
- {fileID: -3189639346213710365}
- {fileID: -1317020491931952740}
- {fileID: -4878736563600351927}
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
blitPS: {fileID: 0}
copyDepthPS: {fileID: 0}
screenSpaceShadowPS: {fileID: 0}
samplingPS: {fileID: 0}
fallbackErrorPS: {fileID: 0}
blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}
copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
screenSpaceShadowPS: {fileID: 4800000, guid: 0f854b35a0cf61a429bd5dcfea30eddd,
type: 3}
samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
m_OpaqueLayerMask:
serializedVersion: 2
m_Bits: 4294967295

failOperation: 0
zFailOperation: 0
m_ShadowTransparentReceive: 1
--- !u!114 &4860357971611268930
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: adbe377f4f72c497faee64bc3f0580b9, type: 3}
m_Name: NewWaterSystemFeature
m_EditorClassIdentifier:
settings:
causticScale: 0.25
debug: 0
causticShader: {fileID: 4800000, guid: 90939d2e4b62841d29c136c866715501, type: 3}

3
Assets/Data/UniversalRP/PipelineAsset_High.asset


m_RendererData: {fileID: 11400000, guid: fa301df1a78cf4a9ebe2a3139dc8be8f, type: 2}
m_RendererDataList:
- {fileID: 11400000, guid: fa301df1a78cf4a9ebe2a3139dc8be8f, type: 2}
- {fileID: 11400000, guid: da5d03fd77333493b9b9d22f90c457ef, type: 2}
- {fileID: 11400000, guid: 74177b577927ace4798a79666640ab41, type: 2}
m_DefaultRendererIndex: 0
m_RequireDepthTexture: 1
m_RequireOpaqueTexture: 1

m_SupportsDynamicBatching: 0
m_MixedLightingSupported: 1
m_DebugLevel: 0
m_PostProcessingFeatureSet: 0
m_ColorGradingMode: 0
m_ColorGradingLutSize: 32
m_ShadowType: 1

2
Assets/Objects/misc/checkpoint.prefab


- component: {fileID: 7010558061549940322}
- component: {fileID: 2022547064098935892}
- component: {fileID: 5705232510240925869}
m_Layer: 0
m_Layer: 16
m_Name: checkpoint
m_TagString: Untagged
m_Icon: {fileID: 0}

2
Assets/ScriptableRenderFeatures/RetroPass/Mat_Pass_Retro.mat


m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- Vector1_A02E52BC: 128
- Vector1_A02E52BC: 443.8
m_Colors: []

4
Assets/ScriptableRenderFeatures/SobelOutlinePass/Mat_Pass_OutlineSobel.mat


m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _Delta: 0.0025
- _DepthIntensity: 106
- _Delta: 0.000824
- _DepthIntensity: 59
- _Raw: 0
- _Value: 0.4
m_Colors:

2
Assets/ScriptableRenderFeatures/ToonPass/Mat_Pass_ToonPosterize.mat


- Vector1_4104473D: 1
- Vector1_AEC01A83: 1.58
- Vector1_D762F4FB: 1.25
- Vector1_F9C37264: 4.95
- Vector1_F9C37264: 1.88
m_Colors:
- Color_F070CA84: {r: 1, g: 0.6776521, b: 0, a: 0}

59
Assets/scenes/demo_Island.unity


propertyPath: m_LocalPosition.z
value: 49.590775
objectReference: {fileID: 0}
- target: {fileID: 3374119446944087244, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.3409949
objectReference: {fileID: 0}
- target: {fileID: 3374119446944087244, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.94006515
objectReference: {fileID: 0}
- target: {fileID: 6589000189934312487, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalPosition.x

propertyPath: m_Name
value: Island Level
objectReference: {fileID: 0}
- target: {fileID: 6589000190219289651, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.33798867
objectReference: {fileID: 0}
- target: {fileID: 6589000190219289651, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.9290833
objectReference: {fileID: 0}
- target: {fileID: 7096263784801332180, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_Color.r
value: 0.9716981
objectReference: {fileID: 0}
- target: {fileID: 7096263784801332180, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_Color.g
value: 0.89161044
objectReference: {fileID: 0}
- target: {fileID: 7096263784801332180, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_Color.b
value: 0.7287736
objectReference: {fileID: 0}
value: 0.011147385
value: 0.011147388
objectReference: {fileID: 0}
- target: {fileID: 7532958370797222331, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}

- target: {fileID: 7532958370797222331, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.z
value: -0.073744975
value: -0.073745
objectReference: {fileID: 0}
- target: {fileID: 8115735017685696522, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.53654194
objectReference: {fileID: 0}
- target: {fileID: 8115735017685696522, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.66060746
objectReference: {fileID: 0}
- target: {fileID: 8115735017685696522, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.z
value: 0.27422032
objectReference: {fileID: 0}
- target: {fileID: 8115735017685696522, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.w
value: -0.44779894
objectReference: {fileID: 0}
- target: {fileID: 8367957410019747705, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}

4
ProjectSettings/QualitySettings.asset


QualitySettings:
m_ObjectHideFlags: 0
serializedVersion: 5
m_CurrentQuality: 1
m_CurrentQuality: 2
m_QualitySettings:
- serializedVersion: 2
name: Low

skinWeights: 2
textureQuality: 0
anisotropicTextures: 2
antiAliasing: 0
antiAliasing: 2
softParticles: 1
softVegetation: 1
realtimeReflectionProbes: 1

36
Assets/Data/UniversalRP/BoatXRayRenderer.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
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: de640fe3d0db1804a85f9fc8f5cadab6, type: 3}
m_Name: BoatXRayRenderer
m_EditorClassIdentifier:
m_RendererFeatures: []
postProcessData: {fileID: 0}
shaders:
blitPS: {fileID: 0}
copyDepthPS: {fileID: 0}
screenSpaceShadowPS: {fileID: 0}
samplingPS: {fileID: 0}
fallbackErrorPS: {fileID: 0}
m_OpaqueLayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_TransparentLayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_DefaultStencilState:
overrideStencilState: 0
stencilReference: 0
stencilCompareFunction: 8
passOperation: 0
failOperation: 0
zFailOperation: 0
m_ShadowTransparentReceive: 1

8
Assets/Data/UniversalRP/BoatXRayRenderer.asset.meta


fileFormatVersion: 2
guid: 936e79759a86c0b48a42e4be70b6de87
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
Assets/ScriptableRenderFeatures/DitherPass.meta


fileFormatVersion: 2
guid: f408f669171964041b051a8fd88d3efe
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

97
Assets/ScriptableRenderFeatures/DitherPass/Dither.mat


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-2480406745214698791
MonoBehaviour:
m_ObjectHideFlags: 11
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: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 1
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Dither
m_Shader: {fileID: -6465566751694194690, guid: 64ba0e3339da2724cafd2e3f093a3449,
type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
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}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- Vector1_2233C9E: 0.7
- Vector1_4D822FC9: 0.14
- Vector1_FFFD6FCD: 0.79
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_17F8DB71: {r: 1, g: 0.5641353, b: 0, a: 1}
- Color_3362C457: {r: 1, g: 0, b: 0.00931406, a: 1}
- Color_542EBF78: {r: 0.21224067, g: 0.5283019, b: 0, a: 0}
- _BaseColor: {r: 0, g: 0.0802474, b: 1, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}

8
Assets/ScriptableRenderFeatures/DitherPass/Dither.mat.meta


fileFormatVersion: 2
guid: 1dd942a1fb1319643b43f9f141ba026c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

152
Assets/ScriptableRenderFeatures/DitherPass/ScreenDitherShader.shadergraph
文件差异内容过多而无法显示
查看文件

10
Assets/ScriptableRenderFeatures/DitherPass/ScreenDitherShader.shadergraph.meta


fileFormatVersion: 2
guid: 64ba0e3339da2724cafd2e3f093a3449
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
正在加载...
取消
保存