浏览代码

Reduce the number of slices by 2x

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

4
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Volumetrics/Resources/VolumetricLighting.compute


#if (SHADEROPTIONS_VOLUMETRIC_LIGHTING_PRESET == 1)
// E.g. for 1080p: (1920/8)x(1080/8)x(128) = 4,147,200 voxels
#define VBUFFER_TILE_SIZE 8
#define VBUFFER_SLICE_COUNT 128
#define VBUFFER_SLICE_COUNT 64
#define VBUFFER_SLICE_COUNT 256
#define VBUFFER_SLICE_COUNT 128
#endif
#define SUPPORT_ASYMMETRY 1 // Support asymmetric phase functions

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


switch (preset)
{
case VolumetricLightingPreset.Normal:
return 128;
return 64;
return 256;
return 128;
case VolumetricLightingPreset.Off:
return 0;
default:

正在加载...
取消
保存