浏览代码

Perform a minor clean up

/main
Evgenii Golubev 7 年前
当前提交
9a866381
共有 2 个文件被更改,包括 5 次插入4 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs
  2. 7
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Volumetrics/VolumetricLighting.cs

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs


}
// Warning: (resolutionChanged == false) if you open a new Editor tab of the same size!
m_VolumetricLightingModule.ResizeVBuffer(hdCamera.GetViewID(), texWidth, texHeight);
m_VolumetricLightingModule.ResizeVBuffer(hdCamera, texWidth, texHeight);
// update recorded window resolution
m_CurrentWidth = texWidth;

7
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Volumetrics/VolumetricLighting.cs


return lightingRTID[1 + ((Time.renderedFrameCount + 1) & 1)];
}
// n = number of buffers within the VBuffer
public void Create(int viewID, int w, int h, int d)
{
Debug.Assert(viewID >= 0);

{
if (preset == VolumetricLightingPreset.Off) return;
CoreUtils.Destroy(m_VolumetricLightingCS);
m_VolumetricLightingCS = null;
for (int i = 0, n = m_VBuffers.Count; i < n; i++)
{

m_VBuffers = null;
}
public void ResizeVBuffer(int viewID, int screenWidth, int screenHeight)
public void ResizeVBuffer(HDCamera camera, int screenWidth, int screenHeight)
int viewID = camera.GetViewID();
Debug.Assert(viewID >= 0);
if (preset == VolumetricLightingPreset.Off) return;

正在加载...
取消
保存