浏览代码

Update code

/stochastic_alpha_test
Sebastien Lagarde 7 年前
当前提交
81143750
共有 6 个文件被更改,包括 18 次插入16 次删除
  1. 10
      ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs
  2. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDStringConstants.cs.meta
  3. 8
      ScriptableRenderPipeline/HDRenderPipeline/Material/Eye/Eye.cs
  4. 8
      ScriptableRenderPipeline/HDRenderPipeline/Material/Fabric/Fabric.cs
  5. 3
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/SSSProfile/FoliageSSSProfile.asset.meta
  6. 3
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/SSSProfile/SkinSSSProfile.asset.meta

10
ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs


{
string passName = "ForwardOnlyOpaqueSplitLighting";
using (new Utilities.ProfilingSample(passName, cmd))
using (new ProfilingSample(passName, cmd))
{
RenderTargetIdentifier[] colorMRTs = new RenderTargetIdentifier[4];
colorMRTs[0] = m_CameraColorBufferRT;

Utilities.SetRenderTarget(cmd, colorMRTs, m_CameraDepthStencilBufferRT);
CoreUtils.SetRenderTarget(cmd, colorMRTs, m_CameraDepthStencilBufferRT);
RenderOpaqueRenderList(cullResults, camera, renderContext, cmd, new ShaderPassName(passName), Utilities.kRendererConfigurationBakedLighting);
RenderOpaqueRenderList(cullResults, camera, renderContext, cmd, new ShaderPassName(passName), HDUtils.k_RendererConfigurationBakedLighting);
}
}

using (new Utilities.ProfilingSample("Forward transparent depth", cmd))
using (new ProfilingSample("Forward transparent depth", cmd))
Utilities.SetRenderTarget(cmd, m_CameraDepthStencilBufferRT);
CoreUtils.SetRenderTarget(cmd, m_CameraDepthStencilBufferRT);
RenderTransparentRenderList(cullResults, camera, renderContext, cmd, new ShaderPassName(passName));
}
}

2
ScriptableRenderPipeline/HDRenderPipeline/HDStringConstants.cs.meta


fileFormatVersion: 2
guid: a586982c0c38ee64095f06495d043462
guid: 6cca8ebc3f1f3ec40bdeeebd8df71a62
timeCreated: 1501072635
licenseType: Pro
MonoImporter:

8
ScriptableRenderPipeline/HDRenderPipeline/Material/Eye/Eye.cs


public override void Build(RenderPipelineResources renderPipelineResources)
{
m_InitPreFGD = Utilities.CreateEngineMaterial("Hidden/HDRenderPipeline/PreIntegratedFGD");
m_InitPreFGD = CoreUtils.CreateEngineMaterial("Hidden/HDRenderPipeline/PreIntegratedFGD");
// For DisneyDiffuse integration values goes from (0.5 to 1.53125). GGX need 0 to 1. Use float format.
m_PreIntegratedFGD = new RenderTexture(128, 128, 0, RenderTextureFormat.RGB111110Float, RenderTextureReadWrite.Linear);

public override void Cleanup()
{
Utilities.Destroy(m_InitPreFGD);
CoreUtils.Destroy(m_InitPreFGD);
// TODO: how to delete RenderTexture ? or do we need to do it ?
m_isInit = false;

if (m_isInit)
return;
using (new Utilities.ProfilingSample("Init PreFGD", cmd))
using (new ProfilingSample("Init PreFGD", cmd))
Utilities.DrawFullScreen(cmd, m_InitPreFGD, new RenderTargetIdentifier(m_PreIntegratedFGD));
CoreUtils.DrawFullScreen(cmd, m_InitPreFGD, new RenderTargetIdentifier(m_PreIntegratedFGD));
}
m_isInit = true;
}

8
ScriptableRenderPipeline/HDRenderPipeline/Material/Fabric/Fabric.cs


public override void Build(RenderPipelineResources renderPipelineResources)
{
m_InitPreFGD = Utilities.CreateEngineMaterial("Hidden/HDRenderPipeline/PreIntegratedFGD");
m_InitPreFGD = CoreUtils.CreateEngineMaterial("Hidden/HDRenderPipeline/PreIntegratedFGD");
// For DisneyDiffuse integration values goes from (0.5 to 1.53125). GGX need 0 to 1. Use float format.
m_PreIntegratedFGD = new RenderTexture(128, 128, 0, RenderTextureFormat.RGB111110Float, RenderTextureReadWrite.Linear);

public override void Cleanup()
{
Utilities.Destroy(m_InitPreFGD);
CoreUtils.Destroy(m_InitPreFGD);
// TODO: how to delete RenderTexture ? or do we need to do it ?
m_isInit = false;

if (m_isInit)
return;
using (new Utilities.ProfilingSample("Init PreFGD", cmd))
using (new ProfilingSample("Init PreFGD", cmd))
Utilities.DrawFullScreen(cmd, m_InitPreFGD, new RenderTargetIdentifier(m_PreIntegratedFGD));
CoreUtils.DrawFullScreen(cmd, m_InitPreFGD, new RenderTargetIdentifier(m_PreIntegratedFGD));
}
m_isInit = true;
}

3
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/SSSProfile/FoliageSSSProfile.asset.meta


fileFormatVersion: 2
guid: d6ee4403015766f4093158d69216c0bf
guid: 79cb35fd7d0eb6a48a98488a9032d76f
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:

3
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/SSSProfile/SkinSSSProfile.asset.meta


fileFormatVersion: 2
guid: 906339bac2066fc4aa22a3652e1283ef
guid: 3e3971716fed12a46909338ed8c7d4e8
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
正在加载...
取消
保存