浏览代码

decal cluster debugging

/main
Paul Melamed 7 年前
当前提交
c4bad05f
共有 2 个文件被更改,包括 7 次插入5 次删除
  1. 11
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs
  2. 1
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs.hlsl

11
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs


Env = 1 << 15,
Sky = 1 << 16,
SSRefraction = 1 << 17,
SSReflection = 1 << 18,
SSReflection = 1 << 18
// If adding more light be sure to not overflow LightDefinitions.s_LightFeatureMaskFlags
}

Environment = 4,
EnvironmentAndPunctual = 5,
EnvironmentAndArea = 6,
EnvironmentAndAreaAndPunctual = 7
EnvironmentAndAreaAndPunctual = 7,
Decal = 8
};
public const int k_MaxDirectionalLightsOnScreen = 4;

influenceExtents.x = Mathf.Abs(influenceExtents.x);
influenceExtents.y = Mathf.Abs(influenceExtents.y);
influenceExtents.z = Mathf.Abs(influenceExtents.z);
lightVolumeData.lightCategory = (uint)LightCategory.Env;
lightVolumeData.lightCategory = (uint)LightCategory.Decal;
lightVolumeData.featureFlags = (uint)LightFeatureFlags.Env;
lightVolumeData.featureFlags = (uint)LightFeatureFlags.Area;
bound.center = influencePositionVS;
bound.boxAxisX = influenceRightVS;

1
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs.hlsl


#define MAX_NR_LIGHTS_PER_CAMERA (1024)
#define MAX_NR_BIG_TILE_LIGHTS_PLUS_ONE (512)
#define VIEWPORT_SCALE_Z (1)
#define USE_LEFT_HAND_CAMERA_SPACE (1)
#define TILE_SIZE_FPTL (16)
#define TILE_SIZE_CLUSTERED (32)
#define NUM_FEATURE_VARIANTS (27)

正在加载...
取消
保存