浏览代码

Start filtering settings dependent on MSAA

Mostly disable stuff, except forward only
/main
Robert Srinivasiah 7 年前
当前提交
75345f2b
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/RenderPipeline/FrameSettings.cs

20
ScriptableRenderPipeline/HDRenderPipeline/HDRP/RenderPipeline/FrameSettings.cs


aggregate.enableTransparentObjects = srcFrameSettings.enableTransparentObjects;
aggregate.enableMSAA = srcFrameSettings.enableMSAA && renderPipelineSettings.supportMSAA;
if (aggregate.enableMSAA)
{
// Initially, MSAA will only support forward
aggregate.enableForwardRenderingOnly = true;
// Assuming MSAA is being used, TAA, and therefore, motion vectors are not needed
aggregate.enableMotionVectors = false;
// The work will be implemented piecemeal to support all passes
aggregate.enableDBuffer = false; // no decals
aggregate.enableDistortion = false; // no gaussian final color
aggregate.enablePostprocess = false;
aggregate.enableRoughRefraction = false; // no gaussian pre-refraction
aggregate.enableSSAO = false;
aggregate.enableSSR = false;
aggregate.enableSubsurfaceScattering = false;
aggregate.enableTransparentObjects = false; // trying to skip the depth pyramid
// I also want to disable the deferred directional shadow to start
}
aggregate.enableShadowMask = srcFrameSettings.enableShadowMask && renderPipelineSettings.supportShadowMask;

正在加载...
取消
保存