Improved the culling result of HizCulling;

Added custom inspector for VolumeObject;
Change the name of AoVolume to VolumeObject;
This commit is contained in:
2025-02-24 00:22:04 +09:00
parent 833502f87c
commit 2f79df128e
23 changed files with 336 additions and 86 deletions

View File

@@ -6,7 +6,7 @@ namespace Misaki.AoVolume
{
[Serializable]
[GenerateHLSL(PackingRules.Exact, false)]
internal struct VolumeData
public struct VolumeData
{
[HideInInspector]
[NonSerialized]
@@ -17,9 +17,20 @@ namespace Misaki.AoVolume
public Vector3 size;
[Range(0.0f, 1.0f)]
public float intensity;
[Range(0.0f, 1.0f)]
public float falloff;
[Range(0.0f, 1.0f)]
public float normalFalloff;
public static VolumeData Default => new()
{
size = Vector3.one,
intensity = 1.0f,
falloff = 0.25f,
normalFalloff = 0.0f
};
}
internal unsafe static class VolumeDataPtr