Added AoVolumePassContext;
Added AoVolumePassBuffer; Changed center of each OBB in FrustumCullingJob from world position to camera-relative world position; Changed outputVolumeData and outputVolumeBounds from NativeList to NativeArray;
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using Unity.Mathematics;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
@@ -11,12 +10,12 @@ namespace Misaki.AoVolume
|
||||
{
|
||||
[HideInInspector]
|
||||
[NonSerialized]
|
||||
public float4x4 worldMatrix;
|
||||
public Matrix4x4 worldMatrix;
|
||||
[HideInInspector]
|
||||
[NonSerialized]
|
||||
public float4x4 inverseWorldMatrix;
|
||||
public Matrix4x4 inverseWorldMatrix;
|
||||
|
||||
public float3 size;
|
||||
public Vector3 size;
|
||||
|
||||
[Range(0.0f, 1.0f)]
|
||||
public float intensity;
|
||||
@@ -24,13 +23,15 @@ namespace Misaki.AoVolume
|
||||
public float falloff;
|
||||
[Range(0.0f, 1.0f)]
|
||||
public float normalFalloff;
|
||||
public float cullDistance;
|
||||
|
||||
public static VolumeData Default => new()
|
||||
{
|
||||
size = new float3(1f),
|
||||
size = Vector3.one,
|
||||
intensity = 1.0f,
|
||||
falloff = 0.25f,
|
||||
normalFalloff = 0.0f
|
||||
normalFalloff = 0.0f,
|
||||
cullDistance = 100.0f
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user