浏览代码

Remove the getter of SubsurfaceScatteringSettings

/fptl_cleanup
Evgenii Golubev 8 年前
当前提交
589e1b1d
共有 4 个文件被更改,包括 35 次插入47 次删除
  1. 2
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Default SSS Profile.asset.meta
  2. 4
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Editor/HDRenderPipelineInspector.cs
  3. 62
      Assets/ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.asset
  4. 14
      Assets/ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs

2
Assets/ScriptableRenderPipeline/HDRenderPipeline/Default SSS Profile.asset.meta


fileFormatVersion: 2
guid: 09521380d86baee43bf09b32473ea5f3
timeCreated: 1490111978
timeCreated: 1490117690
licenseType: Pro
NativeFormatImporter:
mainObjectFileID: 11400000

4
Assets/ScriptableRenderPipeline/HDRenderPipeline/Editor/HDRenderPipelineInspector.cs


m_RenderingUseDepthPrepass = FindProperty(x => x.renderingSettings.useDepthPrepass);
// Subsurface Scattering Settings
m_TexturingMode = serializedObject.FindProperty("m_SssSettings.texturingMode");
m_Profiles = serializedObject.FindProperty("m_SssSettings.profiles");
m_TexturingMode = FindProperty(x => x.sssSettings.texturingMode);
m_Profiles = FindProperty(x => x.sssSettings.profiles);
m_NumProfiles = m_Profiles.FindPropertyRelative("Array.size");
}

62
Assets/ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.asset


renderingSettings:
useForwardRenderingOnly: 0
useDepthPrepass: 0
m_SssSettings:
sssSettings:
numProfiles: 1
texturingMode: 0
transmissionFlags: 0

- 0
- 1
- 0
- 1
- 0

- 0
- 0
- 0
- 0
- 0
- {x: 5.5555553, y: 5.5555553, z: 5.5555553, w: 0}
- {x: 1.3888888, y: 1.3888888, z: 1.3888888, w: 1}
- {x: 5.5555553, y: 5.5555553, z: 5.5555553, w: 0.5}
- {x: 1.3888888, y: 1.3888888, z: 1.3888888, w: 0.5}
- {x: 5.5555553, y: 5.5555553, z: 5.5555553, w: 0}
- {x: 1.3888888, y: 1.3888888, z: 1.3888888, w: 1}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}

- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
halfRcpWeightedVariances:
- {x: 1.3888888, y: 1.3888888, z: 1.3888888, w: 1.3888888}
- {x: 2.4691355, y: 2.4691355, z: 2.4691355, w: 2.4691355}
- {x: 1.3888888, y: 1.3888888, z: 1.3888888, w: 1.3888888}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -1.0145968}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.65810955}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.44856954}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.2834203}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.13769145}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.00000006517248}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.13769145}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.2834203}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.44856954}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.6581096}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 1.0145967}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.7609476}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.49358216}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.33642715}

- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.33642715}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.4935822}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.7609475}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -1.0145968}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.65810955}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.44856954}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.2834203}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.13769145}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.00000006517248}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.13769145}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.2834203}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.44856954}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.6581096}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 1.0145967}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.7609476}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.49358216}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.33642715}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.21256521}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.10326859}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: -0.000000048879357}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.10326859}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.21256521}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.33642715}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.4935822}
- {x: 0.09090909, y: 0.09090909, z: 0.09090909, w: 0.7609475}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}
- {x: 0, y: 0, z: 0, w: 0}

14
Assets/ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs


// Renderer Settings (per project)
public RenderingSettings renderingSettings = new RenderingSettings();
public SubsurfaceScatteringSettings sssSettings
{
get
{
if (m_SssSettings == null)
{
m_SssSettings = new SubsurfaceScatteringSettings();
}
return m_SssSettings;
}
}
public SubsurfaceScatteringSettings sssSettings = new SubsurfaceScatteringSettings();
[SerializeField]
SubsurfaceScatteringSettings m_SssSettings = null;
[SerializeField]
ShadowSettings m_ShadowSettings = ShadowSettings.Default;
[SerializeField]

正在加载...
取消
保存