Added frustum culling;

Added geometry data;

Changed name of VolumeObject to AoVolume;

Removed the capsule type in VolumeType, all volumes are box volume now;
This commit is contained in:
2025-02-19 23:20:38 +09:00
parent de8eafb713
commit ef2bdeac98
18 changed files with 348 additions and 39 deletions

View File

@@ -4,20 +4,13 @@ using UnityEngine.Rendering;
namespace Misaki.AoVolume
{
[GenerateHLSL]
internal enum VolumeType
{
Capsule,
Box
}
[Serializable]
[GenerateHLSL(needAccessors = false)]
[GenerateHLSL(PackingRules.Exact, false)]
internal struct VolumeData
{
public VolumeType volumeType;
[HideInInspector]
public Matrix4x4 worldMatrix;
[HideInInspector]
public Matrix4x4 inverseWorldMatrix;
public Vector3 size;