Initial Upload;
This commit is contained in:
28
Runtime/Shader/Includes/VolumeData.cs
Normal file
28
Runtime/Shader/Includes/VolumeData.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
namespace Misaki.AoVolume
|
||||
{
|
||||
[GenerateHLSL]
|
||||
internal enum VolumeType
|
||||
{
|
||||
Capsule,
|
||||
Box
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
[GenerateHLSL(needAccessors = false)]
|
||||
internal struct VolumeData
|
||||
{
|
||||
public VolumeType volumeType;
|
||||
|
||||
public Matrix4x4 worldMatrix;
|
||||
public Matrix4x4 inverseWorldMatrix;
|
||||
public Vector3 size;
|
||||
|
||||
public float intensity;
|
||||
public float falloff;
|
||||
public float normalFalloff;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user