浏览代码
Merge pull request #1679 from Unity-Technologies/refactor-reflectionprobe/make-probes-common-ancestor
Merge pull request #1679 from Unity-Technologies/refactor-reflectionprobe/make-probes-common-ancestor
Refactor reflectionprobe 0 : make probes common ancestor/main
GitHub
6 年前
当前提交
1dd1fa8a
共有 8 个文件被更改,包括 129 次插入 和 51 次删除
-
8com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/PlanarReflectionProbeUI.Handles.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/SerializedHDReflectionProbe.cs
-
6com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/SerializedPlanarReflectionProbe.cs
-
56com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDAdditionalReflectionData.cs
-
35com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/PlanarReflectionProbe.cs
-
16com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/ProbeWrapper.cs
-
46com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDProbe.cs
-
11com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDProbe.cs.meta
|
|||
using UnityEngine; |
|||
using UnityEngine.Rendering; |
|||
using UnityEngine.Serialization; |
|||
|
|||
namespace UnityEngine.Experimental.Rendering.HDPipeline |
|||
{ |
|||
public abstract class HDProbe : MonoBehaviour |
|||
{ |
|||
[SerializeField, FormerlySerializedAs("proxyVolumeComponent"), FormerlySerializedAs("m_ProxyVolumeReference")] |
|||
ReflectionProxyVolumeComponent m_ProxyVolume = null; |
|||
|
|||
[SerializeField, FormerlySerializedAsAttribute("dimmer"), FormerlySerializedAsAttribute("m_Dimmer"), FormerlySerializedAsAttribute("multiplier")] |
|||
float m_Multiplier = 1.0f; |
|||
[SerializeField, FormerlySerializedAsAttribute("weight")] |
|||
[Range(0.0f, 1.0f)] |
|||
float m_Weight = 1.0f; |
|||
|
|||
[SerializeField] |
|||
ReflectionProbeMode m_Mode = ReflectionProbeMode.Baked; |
|||
[SerializeField] |
|||
ReflectionProbeRefreshMode m_RefreshMode = ReflectionProbeRefreshMode.OnAwake; |
|||
|
|||
/// <summary>ProxyVolume currently used by this probe.</summary>
|
|||
public ReflectionProxyVolumeComponent proxyVolume { get { return m_ProxyVolume; } } |
|||
|
|||
/// <summary>Multiplier factor of reflection (non PBR parameter).</summary>
|
|||
public float multiplier { get { return m_Multiplier; } } |
|||
|
|||
/// <summary>Weight for blending amongst probes (non PBR parameter).</summary>
|
|||
public float weight { get { return m_Weight; } } |
|||
|
|||
/// <summary>The capture mode.</summary>
|
|||
public virtual ReflectionProbeMode mode |
|||
{ |
|||
get { return m_Mode; } |
|||
set { m_Mode = value; } |
|||
} |
|||
|
|||
/// <summary>Refreshing rate of the capture for Realtime capture mode.</summary>
|
|||
public virtual ReflectionProbeRefreshMode refreshMode |
|||
{ |
|||
get { return m_RefreshMode; } |
|||
set { m_RefreshMode = value; } |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 843017cb1cb3fa441a28e5a674bfea8e |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue