浏览代码

Tracking ToDos for stereo re-work

/feature-ReflectionProbeFit
Robert Srinivasiah 7 年前
当前提交
17e5169e
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2
      ScriptableRenderPipeline/Core/CoreUtils.cs
  2. 2
      ScriptableRenderPipeline/HDRenderPipeline/Lighting/LightLoop/LightLoop.cs

2
ScriptableRenderPipeline/Core/CoreUtils.cs


All = Depth | Color
}
// TODO: Move GetTemporaryRT and CreateTexture to here
public static class CoreUtils
{
// Data useful for various cubemap processes.

2
ScriptableRenderPipeline/HDRenderPipeline/Lighting/LightLoop/LightLoop.cs


return 8 * (1 << k_Log2NumClusters); // total footprint for all layers of the tile (measured in light index entries)
}
// TODO: Add proper stereo support
public void AllocResolutionDependentBuffers(int width, int height)
{
var nrTilesX = (width + LightDefinitions.s_TileSizeFptl - 1) / LightDefinitions.s_TileSizeFptl;

int numTilesX = (hdCamera.camera.pixelWidth + (deferredShadowTileSize - 1)) / deferredShadowTileSize;
int numTilesY = (hdCamera.camera.pixelHeight + (deferredShadowTileSize - 1)) / deferredShadowTileSize;
// TODO: Update for stereo
cmd.DispatchCompute(deferredDirectionalShadowComputeShader, s_deferredDirectionalShadowKernel, numTilesX, numTilesY, 1);
}
}

正在加载...
取消
保存