You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
468 B
9 lines
468 B
namespace UnityEngine.Rendering
|
|
{
|
|
static class ProbeVolumeUtil
|
|
{
|
|
internal static int CellSize(int subdivisionLevel) => (int)Mathf.Pow(ProbeBrickPool.kBrickCellCount, subdivisionLevel);
|
|
internal static float BrickSize(float minBrickSize, int subdivisionLevel) => minBrickSize * CellSize(subdivisionLevel);
|
|
internal static float MaxBrickSize(float minBrickSize, int maxSubDivision) => BrickSize(minBrickSize, maxSubDivision - 1);
|
|
}
|
|
}
|