浏览代码

Disable decal for now, (WIP)

/namespace
sebastienlagarde 7 年前
当前提交
e1357721
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 5
      ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs
  2. 5
      ScriptableRenderPipeline/HDRenderPipeline/Material/Decal/DecalUtilities.hlsl

5
ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs


void RenderDBuffer(Vector3 cameraPos, ScriptableRenderContext renderContext, CommandBuffer cmd)
{
using (new ProfilingSample(cmd, "Decals", GetSampler(CustomSamplerId.DBuffer)))
// Currently disabled
return ;
using (new ProfilingSample(cmd, "DBuffer", GetSampler(CustomSamplerId.DBuffer)))
{
CoreUtils.SetRenderTarget(cmd, m_DbufferManager.GetDBuffers(), m_CameraDepthStencilBufferRT, ClearFlag.Color, CoreUtils.clearColorAllBlack);
cmd.SetGlobalTexture(HDShaderIDs._MainDepthTexture, GetDepthTexture());

5
ScriptableRenderPipeline/HDRenderPipeline/Material/Decal/DecalUtilities.hlsl


#include "Decal.hlsl"
#include "Decal.hlsl"
// Currently disabled
#if 0
FETCH_DBUFFER(DBuffer, _DBufferTexture, unPositionSS);
DecalSurfaceData decalSurfaceData;
DECODE_FROM_DBUFFER(DBuffer, decalSurfaceData);

#endif
}
正在加载...
取消
保存