Browse Source

custom dept pp added

main
cailean 8 months ago
parent
commit
42b5721254
  1. 8
      Assets/10_URPEquirectangularCamera/CubeMapMat.mat
  2. 6
      Assets/10_URPEquirectangularCamera/CubemapCamera.prefab
  3. 8
      Assets/10_URPEquirectangularCamera/Scripts/ShaderManiuplation.cs
  4. BIN
      Assets/13_HDRI/cayley_lookout_1k.hdr
  5. BIN
      Assets/13_HDRI/drackenstein_quarry_puresky_1k.hdr
  6. BIN
      Assets/13_HDRI/drakensberg_solitary_mountain_puresky_1k.hdr
  7. BIN
      Assets/13_HDRI/evening_road_01_puresky_1k.hdr
  8. BIN
      Assets/13_HDRI/kiara_1_dawn_1k.hdr
  9. 8
      Assets/14_CustomPP.meta
  10. 43
      Assets/14_CustomPP/Ramp.cs
  11. 2
      Assets/14_CustomPP/Ramp.cs.meta
  12. 1502
      Assets/14_CustomPP/Ramp.shadergraph
  13. 10
      Assets/14_CustomPP/Ramp.shadergraph.meta
  14. 34
      Assets/6_Scenes/Beep.unity
  15. 29
      Assets/Settings/HDRPDefaultResources/DefaultSettingsVolumeProfile.asset
  16. 3
      Assets/Settings/HDRPDefaultResources/HDRenderPipelineGlobalSettings.asset
  17. 29
      Assets/Settings/SkyandFogSettingsProfile.asset

8
Assets/10_URPEquirectangularCamera/CubeMapMat.mat

@ -108,10 +108,10 @@ Material:
- _DivideY: 3.5 - _DivideY: 3.5
- _DstBlend: 0 - _DstBlend: 0
- _EnvironmentReflections: 1 - _EnvironmentReflections: 1
- _EquiRotation: 0.75 - _EquiRotation: 0.125
- _EquiRotationY: 5.23 - _EquiRotationY: 5.13
- _FOVScale_X: 0.9 - _FOVScale_X: 1.5
- _FOVScale_Y: 0.3 - _FOVScale_Y: 0.2
- _FocalLength: 2.73 - _FocalLength: 2.73
- _GlossMapScale: 0 - _GlossMapScale: 0
- _Glossiness: 0 - _Glossiness: 0

6
Assets/10_URPEquirectangularCamera/CubemapCamera.prefab

@ -394,5 +394,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 376cbea962fc8f945b32baff202fbc5e, type: 3} m_Script: {fileID: 11500000, guid: 376cbea962fc8f945b32baff202fbc5e, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Direction: 3 m_Direction: 0
m_ProjectionType: 0 m_ProjectionType: 1
m_GnomicCameraHeight: -20
m_SqueezedCameraHeight: 0

8
Assets/10_URPEquirectangularCamera/Scripts/ShaderManiuplation.cs

@ -36,6 +36,10 @@ public class ShaderManiuplation : MonoBehaviour
public ProjectionType m_ProjectionType = ProjectionType.Gnomic; public ProjectionType m_ProjectionType = ProjectionType.Gnomic;
GameObject m_CubeMapPrefab = null; GameObject m_CubeMapPrefab = null;
public float m_GnomicCameraHeight;
public float m_SqueezedCameraHeight;
// Game View Parameters // Game View Parameters
Type gameView; Type gameView;
PropertyInfo selectedSizeIndex; PropertyInfo selectedSizeIndex;
@ -55,11 +59,11 @@ public class ShaderManiuplation : MonoBehaviour
if (m_ProjectionType == ProjectionType.Squeeze) if (m_ProjectionType == ProjectionType.Squeeze)
{ {
SetShaderSqueezed(21, 0.85f, 2.5f, 3.5f, 4f, 5f); SetShaderSqueezed(21, 0.85f, 2.5f, 3.5f, 4f, m_SqueezedCameraHeight);
} }
else if (m_ProjectionType == ProjectionType.Gnomic) else if (m_ProjectionType == ProjectionType.Gnomic)
{ {
SetShaderGnomic(28, 1.5f, 0.2f, 5.13f, 0.125f, 7f); SetShaderGnomic(28, 1.5f, 0.2f, 5.13f, 0.125f, m_GnomicCameraHeight);
} }
} }
} }

BIN
Assets/13_HDRI/cayley_lookout_1k.hdr

Binary file not shown.

BIN
Assets/13_HDRI/drackenstein_quarry_puresky_1k.hdr

Binary file not shown.

BIN
Assets/13_HDRI/drakensberg_solitary_mountain_puresky_1k.hdr

Binary file not shown.

BIN
Assets/13_HDRI/evening_road_01_puresky_1k.hdr

Binary file not shown.

BIN
Assets/13_HDRI/kiara_1_dawn_1k.hdr

Binary file not shown.

8
Assets/14_CustomPP.meta

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

43
Assets/14_CustomPP/Ramp.cs

@ -0,0 +1,43 @@
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.HighDefinition;
using System;
[Serializable, VolumeComponentMenu("Post-processing/Custom/Ramp")]
public sealed class Ramp : CustomPostProcessVolumeComponent, IPostProcessComponent
{
[Tooltip("Controls the intensity of the effect.")]
public ClampedFloatParameter intensity = new ClampedFloatParameter(0f, 0f, 1f);
Material m_Material;
public bool IsActive() => m_Material != null && intensity.value > 0f;
// Do not forget to add this post process in the Custom Post Process Orders list (Project Settings > Graphics > HDRP Global Settings).
public override CustomPostProcessInjectionPoint injectionPoint => CustomPostProcessInjectionPoint.AfterPostProcess;
const string kShaderName = "Shader Graphs/Ramp";
public override void Setup()
{
if (Shader.Find(kShaderName) != null)
m_Material = new Material(Shader.Find(kShaderName));
else
Debug.LogError($"Unable to find shader '{kShaderName}'. Post Process Volume Ramp is unable to load.");
}
public override void Render(CommandBuffer cmd, HDCamera camera, RTHandle source, RTHandle destination)
{
if (m_Material == null)
return;
m_Material.SetFloat("_Intensity", intensity.value);
m_Material.SetTexture("_MainTex", source);
HDUtils.DrawFullScreen(cmd, m_Material, destination, shaderPassId: 0);
}
public override void Cleanup()
{
CoreUtils.Destroy(m_Material);
}
}

2
Assets/14_CustomPP/Ramp.cs.meta

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: e3f28ae5e03094946a7a9c9ddfc1a178

1502
Assets/14_CustomPP/Ramp.shadergraph

File diff suppressed because it is too large

10
Assets/14_CustomPP/Ramp.shadergraph.meta

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 5c60e083243bdbe479046bb8653eeacc
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

34
Assets/6_Scenes/Beep.unity

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0} m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 27690.973, g: 28366.643, b: 28509.05, a: 1} m_IndirectSpecularColor: {r: 27693.363, g: 28369.207, b: 28511.598, a: 1}
m_UseRadianceAmbientProbe: 0 m_UseRadianceAmbientProbe: 0
--- !u!157 &3 --- !u!157 &3
LightmapSettings: LightmapSettings:
@ -518,7 +518,7 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 377437129} m_GameObject: {fileID: 377437129}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: -0.036361393, y: 0.86814344, z: -0.0643195, w: -0.49078277} m_LocalRotation: {x: -0.036361396, y: 0.86814356, z: -0.06431952, w: -0.4907828}
m_LocalPosition: {x: -407.15, y: 22.6, z: 250.07} m_LocalPosition: {x: -407.15, y: 22.6, z: 250.07}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
@ -915,7 +915,7 @@ Camera:
m_ShutterSpeed: 0.005 m_ShutterSpeed: 0.005
m_Aperture: 16 m_Aperture: 16
m_FocusDistance: 39.125233 m_FocusDistance: 39.125233
m_FocalLength: 13.462364 m_FocalLength: 13.462365
m_BladeCount: 5 m_BladeCount: 5
m_Curvature: {x: 2, y: 11} m_Curvature: {x: 2, y: 11}
m_BarrelClipping: 0.25 m_BarrelClipping: 0.25
@ -956,7 +956,7 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 470663197} m_GameObject: {fileID: 470663197}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: -0.035345294, y: 0.8675396, z: -0.06274856, w: -0.49212635} m_LocalRotation: {x: -0.036361396, y: 0.86814356, z: -0.06431952, w: -0.4907828}
m_LocalPosition: {x: -407.15, y: 22.6, z: 250.07} m_LocalPosition: {x: -407.15, y: 22.6, z: 250.07}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
@ -1056,7 +1056,7 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 513050371} m_GameObject: {fileID: 513050371}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: -0.026846563, y: -0.04668268, z: -0.0012550917, w: 0.9985482} m_LocalRotation: {x: -0.026846563, y: -0.046682674, z: -0.0012550916, w: 0.99854815}
m_LocalPosition: {x: -252.36751, y: 6.25, z: 512.41} m_LocalPosition: {x: -252.36751, y: 6.25, z: 512.41}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
@ -2499,6 +2499,16 @@ PrefabInstance:
serializedVersion: 3 serializedVersion: 3
m_TransformParent: {fileID: 834841056} m_TransformParent: {fileID: 834841056}
m_Modifications: m_Modifications:
- target: {fileID: 723609760478697510, guid: 547378ae4bbaf4b4ba24e3243bcd0838,
type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 723609760478697510, guid: 547378ae4bbaf4b4ba24e3243bcd0838,
type: 3}
propertyPath: m_GnomicCameraHeight
value: -25
objectReference: {fileID: 0}
- target: {fileID: 933460690407818085, guid: 547378ae4bbaf4b4ba24e3243bcd0838, - target: {fileID: 933460690407818085, guid: 547378ae4bbaf4b4ba24e3243bcd0838,
type: 3} type: 3}
propertyPath: m_Name propertyPath: m_Name
@ -2507,17 +2517,17 @@ PrefabInstance:
- target: {fileID: 933460690407818091, guid: 547378ae4bbaf4b4ba24e3243bcd0838, - target: {fileID: 933460690407818091, guid: 547378ae4bbaf4b4ba24e3243bcd0838,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: -422.8327 value: -255.8
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 933460690407818091, guid: 547378ae4bbaf4b4ba24e3243bcd0838, - target: {fileID: 933460690407818091, guid: 547378ae4bbaf4b4ba24e3243bcd0838,
type: 3} type: 3}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: 23.787994 value: -25
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 933460690407818091, guid: 547378ae4bbaf4b4ba24e3243bcd0838, - target: {fileID: 933460690407818091, guid: 547378ae4bbaf4b4ba24e3243bcd0838,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
value: 175.17566 value: 567
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 933460690407818091, guid: 547378ae4bbaf4b4ba24e3243bcd0838, - target: {fileID: 933460690407818091, guid: 547378ae4bbaf4b4ba24e3243bcd0838,
type: 3} type: 3}
@ -2574,6 +2584,11 @@ PrefabInstance:
propertyPath: orthographic size propertyPath: orthographic size
value: 10 value: 10
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 933460690440954431, guid: 547378ae4bbaf4b4ba24e3243bcd0838,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_RemovedGameObjects: [] m_RemovedGameObjects: []
m_AddedGameObjects: [] m_AddedGameObjects: []
@ -2682,8 +2697,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1f83b258daac8e846bed96ffebb253e3, type: 3} m_Script: {fileID: 11500000, guid: 1f83b258daac8e846bed96ffebb253e3, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_WaypointList: m_WaypointList: []
- {fileID: 1201075077}
m_Target: {fileID: 387060610} m_Target: {fileID: 387060610}
m_CurrentWaypoint: {fileID: 1201075077} m_CurrentWaypoint: {fileID: 1201075077}
--- !u!4 &1518800082 --- !u!4 &1518800082

29
Assets/Settings/HDRPDefaultResources/DefaultSettingsVolumeProfile.asset

@ -33,6 +33,18 @@ MonoBehaviour:
maximumIntensity: maximumIntensity:
m_OverrideState: 1 m_OverrideState: 1
m_Value: 10 m_Value: 10
denoising:
m_OverrideState: 0
m_Value: 0
useAOVs:
m_OverrideState: 0
m_Value: 1
temporal:
m_OverrideState: 0
m_Value: 0
asyncDenoising:
m_OverrideState: 0
m_Value: 1
skyImportanceSampling: skyImportanceSampling:
m_OverrideState: 1 m_OverrideState: 1
m_Value: 0 m_Value: 0
@ -1032,6 +1044,7 @@ MonoBehaviour:
- {fileID: -8308199868632852039} - {fileID: -8308199868632852039}
- {fileID: -5320661601775074523} - {fileID: -5320661601775074523}
- {fileID: -5703741376142700804} - {fileID: -5703741376142700804}
- {fileID: 4159193168474945268}
--- !u!114 &196157046809651451 --- !u!114 &196157046809651451
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 3 m_ObjectHideFlags: 3
@ -1485,6 +1498,22 @@ MonoBehaviour:
balance: balance:
m_OverrideState: 1 m_OverrideState: 1
m_Value: 0 m_Value: 0
--- !u!114 &4159193168474945268
MonoBehaviour:
m_ObjectHideFlags: 3
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: e3f28ae5e03094946a7a9c9ddfc1a178, type: 3}
m_Name: Ramp
m_EditorClassIdentifier:
active: 1
intensity:
m_OverrideState: 1
m_Value: 0.143
--- !u!114 &5036919984216512174 --- !u!114 &5036919984216512174
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 3 m_ObjectHideFlags: 3

3
Assets/Settings/HDRPDefaultResources/HDRenderPipelineGlobalSettings.asset

@ -124,7 +124,8 @@ MonoBehaviour:
beforeTransparentCustomPostProcesses: [] beforeTransparentCustomPostProcesses: []
beforePostProcessCustomPostProcesses: [] beforePostProcessCustomPostProcesses: []
afterPostProcessBlursCustomPostProcesses: [] afterPostProcessBlursCustomPostProcesses: []
afterPostProcessCustomPostProcesses: [] afterPostProcessCustomPostProcesses:
- Ramp, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
beforeTAACustomPostProcesses: [] beforeTAACustomPostProcesses: []
defaultRenderingLayerMask: 257 defaultRenderingLayerMask: 257
renderingLayerNames: renderingLayerNames:

29
Assets/Settings/SkyandFogSettingsProfile.asset

@ -872,6 +872,18 @@ MonoBehaviour:
maximumIntensity: maximumIntensity:
m_OverrideState: 1 m_OverrideState: 1
m_Value: 10 m_Value: 10
denoising:
m_OverrideState: 1
m_Value: 0
useAOVs:
m_OverrideState: 1
m_Value: 1
temporal:
m_OverrideState: 1
m_Value: 0
asyncDenoising:
m_OverrideState: 1
m_Value: 1
skyImportanceSampling: skyImportanceSampling:
m_OverrideState: 1 m_OverrideState: 1
m_Value: 0 m_Value: 0
@ -1247,6 +1259,22 @@ MonoBehaviour:
highlightsEnd: highlightsEnd:
m_OverrideState: 1 m_OverrideState: 1
m_Value: 1 m_Value: 1
--- !u!114 &-2552918245885184257
MonoBehaviour:
m_ObjectHideFlags: 3
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: e3f28ae5e03094946a7a9c9ddfc1a178, type: 3}
m_Name: Ramp
m_EditorClassIdentifier:
active: 1
intensity:
m_OverrideState: 1
m_Value: 0
--- !u!114 &-2484295542235102534 --- !u!114 &-2484295542235102534
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 3 m_ObjectHideFlags: 3
@ -1609,6 +1637,7 @@ MonoBehaviour:
- {fileID: -1354700321413123029} - {fileID: -1354700321413123029}
- {fileID: -4627288363748534694} - {fileID: -4627288363748534694}
- {fileID: -7599423270992533750} - {fileID: -7599423270992533750}
- {fileID: -2552918245885184257}
--- !u!114 &831513112825940344 --- !u!114 &831513112825940344
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 3 m_ObjectHideFlags: 3

Loading…
Cancel
Save