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:
2025-02-19 23:20:38 +09:00
parent de8eafb713
commit ef2bdeac98
18 changed files with 348 additions and 39 deletions

View File

@@ -0,0 +1,52 @@
//
// This file was automatically generated. Please don't edit by hand. Execute Editor command [ Edit > Rendering > Generate Shader Includes ] instead
//
#ifndef GEOMETRYDATA_CS_HLSL
#define GEOMETRYDATA_CS_HLSL
// Generated from Misaki.AoVolume.CullingData
// PackingRules = Exact
struct CullingData
{
float fadeStart;
float fadeEnd;
};
// Generated from Misaki.AoVolume.FrustumGPU
// PackingRules = Exact
struct FrustumGPU
{
float3 normal0;
float dist0;
float3 normal1;
float dist1;
float3 normal2;
float dist2;
float3 normal3;
float dist3;
float3 normal4;
float dist4;
float3 normal5;
float dist5;
float4 corner0;
float4 corner1;
float4 corner2;
float4 corner3;
float4 corner4;
float4 corner5;
float4 corner6;
float4 corner7;
};
// Generated from Misaki.AoVolume.OrientedBoundingBox
// PackingRules = Exact
struct OrientedBoundingBox
{
float3 center;
float3 right;
float3 up;
float3 extent;
};
#endif