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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user