Added geometry data; Changed name of VolumeObject to AoVolume; Removed the capsule type in VolumeType, all volumes are box volume now;
21 lines
463 B
C#
21 lines
463 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
|
|
namespace Misaki.AoVolume
|
|
{
|
|
[Serializable]
|
|
[GenerateHLSL(PackingRules.Exact, false)]
|
|
internal struct VolumeData
|
|
{
|
|
[HideInInspector]
|
|
public Matrix4x4 worldMatrix;
|
|
[HideInInspector]
|
|
public Matrix4x4 inverseWorldMatrix;
|
|
public Vector3 size;
|
|
|
|
public float intensity;
|
|
public float falloff;
|
|
public float normalFalloff;
|
|
}
|
|
} |