{
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));
fileFormatVersion: 2
guid: a586982c0c38ee64095f06495d043462
guid: 6cca8ebc3f1f3ec40bdeeebd8df71a62
timeCreated: 1501072635
licenseType: Pro
MonoImporter:
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;
guid: d6ee4403015766f4093158d69216c0bf
guid: 79cb35fd7d0eb6a48a98488a9032d76f
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
guid: 906339bac2066fc4aa22a3652e1283ef
guid: 3e3971716fed12a46909338ed8c7d4e8