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:
@@ -2,7 +2,7 @@ using UnityEngine;
|
||||
|
||||
namespace Misaki.AoVolume
|
||||
{
|
||||
internal abstract class VolumeObject : MonoBehaviour
|
||||
internal class AoVolume : MonoBehaviour
|
||||
{
|
||||
private VolumeEntity _entity = VolumeEntity.InvalidEntity;
|
||||
|
||||
@@ -33,7 +33,8 @@ namespace Misaki.AoVolume
|
||||
|
||||
protected virtual void Update()
|
||||
{
|
||||
|
||||
data.worldMatrix = transform.localToWorldMatrix;
|
||||
data.inverseWorldMatrix = data.worldMatrix.inverse;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user