Improved the culling result of HizCulling;
Added custom inspector for VolumeObject; Change the name of AoVolume to VolumeObject;
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user