Files
VR-GAME/Library/Artifacts/80/802d1c7c8d418d862a76bcc99bdd2d00

41 lines
4.9 KiB
Plaintext
Raw Normal View History

2026-04-25 12:12:07 +07:00

a<13>
<EFBFBD>0.0.0<00><><EFBFBD><EFBFBD><00><>0v<30>,<2C>|p<><70>A <0B>@<40>3<00>7<00><><EFBFBD><EFBFBD><EFBFBD><00><00><00><><00>E<00> <00><00>)<00>.<00>2<00>;a<00> <00><00>)<00>.<00>2<00><00><00>r<00> <00><00>) <00>.<00>2
<00>H<00><><00><><EFBFBD><EFBFBD><EFBFBD> <01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD> @<00><00><00> Q<00>j<00><00><00>P<00><><EFBFBD><EFBFBD><01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD><01><00><00><00><00>j<00><><EFBFBD><EFBFBD><EFBFBD><01>b<00><00><><EFBFBD><EFBFBD><EFBFBD><01>H<00>x<00><><EFBFBD><EFBFBD><01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>@<00><00><00>Q<00>j<00>H<00>}<00><><EFBFBD><EFBFBD><01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>@<00><00><00>Q<00>j<00>H<00><><00><><EFBFBD><EFBFBD><01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>@<00><00><00>Q<00>j<00>y<00>
<00> <00><00>)!<00>.<00>2"<00><00><><00><><EFBFBD><EFBFBD>#@1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>$<00><00><00>%.<00>j<00>&H<00><><00><><EFBFBD><EFBFBD>'<01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>(@<00><00><00>)Q<00>j<00>*H<00><><00><><EFBFBD><EFBFBD>+<01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>,@<00><00><00>-Q<00>j<00>.H<00><><00><><EFBFBD><EFBFBD>/<01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>0@<00><00><00>1Q<00>j<00>2TextScriptImporterPPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_ExternalObjectsSourceAssetIdentifiertypeassemblynamem_UsedFileIDsm_UserDatam_AssetBundleNamem_AssetBundleVariant1<00><>eF<08>_1Ch_މ<5F>$=O<00>7<00><><EFBFBD><EFBFBD><EFBFBD><00><00><00><><00>E<00> <00><00><00>.<00><00>(a<00> <00><00><00>.<00><00><00><00>r<00> <00><00> <00>.<00>
<00>H<00><><00><><EFBFBD><EFBFBD><EFBFBD> <01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD> @<00><00><00> Q<00>j<00>H<00><><00><><EFBFBD><EFBFBD><EFBFBD><01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>@<00><00><00>Q<00>j<00>PPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>H<00><>JP<00><00><>J NewPostProcessVolumeComponent.csmusing UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
// Defines a custom Volume Override component that controls the intensity of the URP Post-processing effect on a Scriptable Renderer Feature.
// For more information about the VolumeComponent API, refer to https://docs.unity3d.com/Packages/com.unity.render-pipelines.core@17.2/api/UnityEngine.Rendering.VolumeComponent.html
// Add the Volume Override to the list of available Volume Override components in the Volume Profile.
[VolumeComponentMenu("Post-processing Custom/#DISPLAY_NAME#")]
// If the related Scriptable Renderer Feature doesn't exist, display a warning about adding it to the renderer.
[VolumeRequiresRendererFeatures(typeof(#FEATURE_TYPE#))]
// Make the Volume Override active in the Universal Render Pipeline.
[SupportedOnRenderPipeline(typeof(UniversalRenderPipelineAsset))]
// Set the name of the volume component in the list in the Volume Profile.
[DisplayInfo(name = "#DISPLAY_NAME#")]
// Create the Volume Override by inheriting from VolumeComponent
public sealed class #VOLUME_TYPE# : VolumeComponent, IPostProcessComponent
{
// Create a property to control the intensity of the effect, with a tooltip description.
// You can set the default value in the project-wide Graphics settings window. For more information, refer to https://docs.unity3d.com/Manual/urp/urp-global-settings.html
// You can override the value in a local or global volume. For more information, refer to https://docs.unity3d.com/Manual/urp/volumes-landing-page.html
// To access the value in a script, refer to the VolumeManager API: https://docs.unity3d.com/Packages/com.unity.render-pipelines.core@latest/index.html?subfolder=/api/UnityEngine.Rendering.VolumeManager.html
[Tooltip("Enter the description for the property that is shown when hovered")]
public ClampedFloatParameter intensity = new ClampedFloatParameter(1f, 0f, 1f);
// Optional: Implement the IsActive() method of the IPostProcessComponent interface, and get the intensity value.
public bool IsActive()
{
return intensity.GetValue<float>() > 0.0f;
}
}