浏览代码

Fix planar reflections from rendering post v3

/lw-hw19-volume-env
André McGrail 5 年前
当前提交
df2b7a4a
共有 5 个文件被更改,包括 178 次插入135 次删除
  1. 2
      Assets/Data/LightweightAsset.asset
  2. 162
      Assets/scenes/Island.unity
  3. 133
      Assets/scenes/Island/GlobalFX Profile.asset
  4. 1
      Packages/com.verasl.water-system/Scripts/Rendering/PlanarReflections.cs
  5. 15
      ProjectSettings/QualitySettings.asset

2
Assets/Data/LightweightAsset.asset


m_UseSRPBatcher: 1
m_SupportsDynamicBatching: 0
m_MixedLightingSupported: 1
m_ColorGradingMode: 0
m_ColorGradingLutSize: 32
m_ShadowType: 1
m_LocalShadowsSupported: 0
m_LocalShadowsAtlasResolution: 256

162
Assets/scenes/Island.unity


m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ShowResolutionOverlay: 1
m_TrainingDataDestination: TrainingData
m_LightingDataAsset: {fileID: 112000000, guid: 32f1f9840645d6c47984138dfb695815,
type: 2}
m_UseShadowmask: 0

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 153441711}
m_LocalRotation: {x: 0.16890025, y: -0.8170656, z: 0.32756498, w: 0.44337094}
m_LocalRotation: {x: 0.16890061, y: -0.81706506, z: 0.3275648, w: 0.44337186}
m_LocalPosition: {x: -77.74759, y: 8.297212, z: -21.408878}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:

m_Modification:
m_TransformParent: {fileID: 305293681}
m_Modifications:
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_Name
value: _Boat
objectReference: {fileID: 0}
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4534809148113994, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_LocalPosition.x
value: -3

propertyPath: UVModule.flipV
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_Name
value: _Boat
objectReference: {fileID: 0}
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 23139903168929634, guid: fc3ffb83d6eafb1489a5b23bc82d25b6,
type: 3}
propertyPath: m_Materials.Array.data[0]

- component: {fileID: 1017609897}
- component: {fileID: 1017609896}
- component: {fileID: 1017609895}
- component: {fileID: 1017609899}
- component: {fileID: 1017609903}
- component: {fileID: 1017609904}
- component: {fileID: 1017609902}

m_RequiresOpaqueTextureOption: 2
m_RendererOverrideOption: 1
m_RendererData: {fileID: 0}
m_VolumeLayerMask:
serializedVersion: 2
m_Bits: 256
m_VolumeTrigger: {fileID: 0}
m_RenderPostProcessing: 1
m_Antialiasing: 0
m_AntialiasingQuality: 2
m_StopNaN: 0
m_Dithering: 0
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1017609894}
m_LocalRotation: {x: 0.16890025, y: -0.8170656, z: 0.32756498, w: 0.44337094}
m_LocalRotation: {x: 0.16890061, y: -0.81706506, z: 0.3275648, w: 0.44337186}
m_LocalPosition: {x: -77.74759, y: 8.297212, z: -21.408878}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []

--- !u!114 &1017609899
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1017609894}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 948f4100a11a5c24981795d21301da5c, type: 3}
m_Name:
m_EditorClassIdentifier:
volumeTrigger: {fileID: 1017609898}
volumeLayer:
serializedVersion: 2
m_Bits: 256
stopNaNPropagation: 0
finalBlitToCameraTarget: 1
antialiasingMode: 1
temporalAntialiasing:
jitterSpread: 0.75
sharpness: 0.25
stationaryBlending: 0.95
motionBlending: 0.85
subpixelMorphologicalAntialiasing:
quality: 2
fastApproximateAntialiasing:
fastMode: 1
keepAlpha: 0
fog:
enabled: 1
excludeSkybox: 1
debugLayer:
lightMeter:
width: 512
height: 256
showCurves: 1
histogram:
width: 512
height: 256
channel: 3
waveform:
exposure: 0.12
height: 256
vectorscope:
size: 256
exposure: 0.12
overlaySettings:
linearDepth: 0
motionColorIntensity: 4
motionGridSize: 64
colorBlindnessType: 0
colorBlindnessStrength: 1
m_Resources: {fileID: 11400000, guid: d82512f9c8e5d4a4d938b575d47f88d4, type: 2}
m_ShowToolkit: 0
m_ShowCustomSorter: 0
breakBeforeColorGrading: 0
m_BeforeTransparentBundles: []
m_BeforeStackBundles:
- assemblyQualifiedName: BasicAO, Assembly-CSharp, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
m_AfterStackBundles: []
--- !u!114 &1017609902
MonoBehaviour:
m_ObjectHideFlags: 0

m_Modification:
m_TransformParent: {fileID: 305293681}
m_Modifications:
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_Name
value: _Boat
objectReference: {fileID: 0}
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4534809148113994, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_LocalPosition.x
value: 3

propertyPath: UVModule.flipV
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_Name
value: _Boat
objectReference: {fileID: 0}
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
--- !u!4 &1066609277 stripped

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1143740434}
m_LocalRotation: {x: -0.002767296, y: 0.9054669, z: -0.005904022, w: -0.42436683}
m_LocalRotation: {x: -0.0027672937, y: 0.9054671, z: -0.005904023, w: -0.42436647}
m_LocalPosition: {x: 42, y: 2.51, z: 62.1}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:

m_Modification:
m_TransformParent: {fileID: 305293681}
m_Modifications:
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_Name
value: _Boat
objectReference: {fileID: 0}
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4534809148113994, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_LocalPosition.x
value: -3

propertyPath: UVModule.flipV
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_Name
value: _Boat
objectReference: {fileID: 0}
- target: {fileID: 1553288845585282, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: fc3ffb83d6eafb1489a5b23bc82d25b6, type: 3}
--- !u!1 &1358838130

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1376922736}
m_LocalRotation: {x: -0.0132670235, y: 0.9827769, z: -0.16695733, w: -0.078094974}
m_LocalRotation: {x: -0.013267021, y: 0.9827769, z: -0.16695736, w: -0.078094944}
m_LocalPosition: {x: 69.76, y: 3.82, z: 81.16}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1768035350}
m_LocalRotation: {x: -0.0056329533, y: 0.98484004, z: -0.032578018, w: -0.1702853}
m_LocalRotation: {x: -0.0056329533, y: 0.98484004, z: -0.03257802, w: -0.1702853}
m_LocalPosition: {x: -52.17383, y: 5.022266, z: 35.95739}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:

- component: {fileID: 1819032312}
- component: {fileID: 1819032313}
m_Layer: 0
m_Name: '---------------WIP--------------'
m_Name: ---------------WIP--------------
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0

m_GameObject: {fileID: 1901793628}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal

m_GameObject: {fileID: 1901793628}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}

serializedVersion: 6
m_Component:
- component: {fileID: 2041733962}
- component: {fileID: 2041733964}
- component: {fileID: 2041733961}
m_Layer: 8
m_Name: GlobalFX

m_GameObject: {fileID: 2041733960}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8b9a305e18de0c04dbd257a21cd47087, type: 3}
m_Script: {fileID: 11500000, guid: 172515602e62fb746b5d573b38a5fe58, type: 3}
sharedProfile: {fileID: 11400000, guid: 08257ccb0e8d74997aa6f2d72ca1a4d4, type: 2}
priority: 0
priority: 1
sharedProfile: {fileID: 11400000, guid: ff01fc1485be44df0bc381e53dc3c879, type: 2}
--- !u!4 &2041733962
Transform:
m_ObjectHideFlags: 0

m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2041733964
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2041733960}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8b9a305e18de0c04dbd257a21cd47087, type: 3}
m_Name:
m_EditorClassIdentifier:
sharedProfile: {fileID: 11400000, guid: 1f926f99490174f65be0c443e67c3a38, type: 2}
isGlobal: 1
blendDistance: 0
weight: 1
priority: 0
--- !u!1 &2061336191
GameObject:
m_ObjectHideFlags: 0

133
Assets/scenes/Island/GlobalFX Profile.asset


m_Value: 0
min: -100
max: 100
--- !u!114 &-5880084817896221590
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: c01700fd266d6914ababb731e09af2eb, type: 3}
m_Name: DepthOfField
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
mode:
m_OverrideState: 1
m_Value: 2
gaussianStart:
m_OverrideState: 1
m_Value: 10
min: 0
gaussianEnd:
m_OverrideState: 1
m_Value: 30
min: 0
gaussianMaxRadius:
m_OverrideState: 1
m_Value: 1
min: 0.5
max: 1.5
highQualitySampling:
m_OverrideState: 1
m_Value: 0
focusDistance:
m_OverrideState: 1
m_Value: 20
min: 0.1
aperture:
m_OverrideState: 1
m_Value: 2.4
min: 1
max: 32
focalLength:
m_OverrideState: 1
m_Value: 150
min: 1
max: 300
bladeCount:
m_OverrideState: 1
m_Value: 5
min: 3
max: 9
bladeCurvature:
m_OverrideState: 1
m_Value: 0
min: 0
max: 1
bladeRotation:
m_OverrideState: 1
m_Value: 0
min: -180
max: 180
--- !u!114 &-4356414026959411784
MonoBehaviour:
m_ObjectHideFlags: 3

min: 0
tint:
m_OverrideState: 1
m_Value: {r: 0.55460125, g: 0.78528124, b: 0.9716981, a: 1}
m_Value: {r: 1, g: 1, b: 1, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 1

m_Script: {fileID: 11500000, guid: ccf1aba9553839d41ae37dd52e9ebcce, type: 3}
m_Name: MotionBlur
m_EditorClassIdentifier:
active: 1
active: 0
m_AdvancedMode: 0
mode:
m_OverrideState: 1

m_AdvancedMode: 0
postExposure:
m_OverrideState: 1
m_Value: -0.51
m_Value: -0.66
m_Value: 11
m_Value: -3.8
min: -100
max: 100
colorFilter:

- {fileID: 4034598536361921627}
- {fileID: -4356414026959411784}
- {fileID: -477900410362853418}
- {fileID: -5880084817896221590}
--- !u!114 &1950431032137305519
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: c01700fd266d6914ababb731e09af2eb, type: 3}
m_Name: DepthOfField
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
mode:
m_OverrideState: 0
m_Value: 0
gaussianStart:
m_OverrideState: 0
m_Value: 10
min: 0
gaussianEnd:
m_OverrideState: 0
m_Value: 30
min: 0
gaussianMaxRadius:
m_OverrideState: 0
m_Value: 1
min: 0.5
max: 1.5
highQualitySampling:
m_OverrideState: 0
m_Value: 0
focusDistance:
m_OverrideState: 0
m_Value: 10
min: 0.1
aperture:
m_OverrideState: 0
m_Value: 5.6
min: 1
max: 32
focalLength:
m_OverrideState: 0
m_Value: 50
min: 1
max: 300
bladeCount:
m_OverrideState: 0
m_Value: 5
min: 3
max: 9
bladeCurvature:
m_OverrideState: 0
m_Value: 1
min: 0
max: 1
bladeRotation:
m_OverrideState: 0
m_Value: 0
min: -180
max: 180
--- !u!114 &4034598536361921627
MonoBehaviour:
m_ObjectHideFlags: 3

1
Packages/com.verasl.water-system/Scripts/Rendering/PlanarReflections.cs


go.AddComponent(typeof(LWRPAdditionalCameraData)) as LWRPAdditionalCameraData;
LWRPAdditionalCameraData lwrpCamDataCurrent = currentCamera.GetComponent<LWRPAdditionalCameraData>();
lwrpCamData.renderShadows = true; // turn off shadows for the reflection camera
lwrpCamData.renderPostProcessing = false;
lwrpCamData.requiresColorOption = CameraOverrideOption.Off;
lwrpCamData.requiresDepthOption = CameraOverrideOption.Off;
var reflectionCamera = go.GetComponent<Camera>();

15
ProjectSettings/QualitySettings.asset


asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
excludedTargetPlatforms: []
m_PerPlatformDefaultQuality:
Android: 0
Nintendo 3DS: 0
Nintendo Switch: 0
PS4: 0
PSP2: 0
Standalone: 0
Tizen: 0
WebGL: 0
WiiU: 0
Windows Store Apps: 0
XboxOne: 0
iPhone: 0
tvOS: 0
m_PerPlatformDefaultQuality: {}
正在加载...
取消
保存