Replace vectors and matrix4x4s to floatx from Mathematics

This commit is contained in:
2025-03-01 22:42:27 +08:00
parent e5f963e2e5
commit 45a3e81dfc
6 changed files with 83 additions and 88 deletions

View File

@@ -1,4 +1,5 @@
using System;
using Unity.Mathematics;
using UnityEngine;
using UnityEngine.Rendering;
@@ -10,12 +11,12 @@ namespace Misaki.AoVolume
{
[HideInInspector]
[NonSerialized]
public Matrix4x4 worldMatrix;
public float4x4 worldMatrix;
[HideInInspector]
[NonSerialized]
public Matrix4x4 inverseWorldMatrix;
public float4x4 inverseWorldMatrix;
public Vector3 size;
public float3 size;
[Range(0.0f, 1.0f)]
public float intensity;
@@ -26,7 +27,7 @@ namespace Misaki.AoVolume
public static VolumeData Default => new()
{
size = Vector3.one,
size = new float3(1f),
intensity = 1.0f,
falloff = 0.25f,
normalFalloff = 0.0f