You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
719 B
Plaintext
32 lines
719 B
Plaintext
1 week ago
|
/******************************************************************************/
|
||
|
/*
|
||
|
Project - MudBun
|
||
|
Publisher - Long Bunny Labs
|
||
|
http://LongBunnyLabs.com
|
||
|
Author - Ming-Lun "Allen" Chou
|
||
|
http://AllenChou.net
|
||
|
*/
|
||
|
/******************************************************************************/
|
||
|
|
||
|
#ifndef MUDBUN_VOXEL_CACHE_DEFS
|
||
|
#define MUDBUN_VOXEL_CACHE_DEFS
|
||
|
|
||
|
#include "BrushDefs.cginc"
|
||
|
|
||
|
#define kNullVoxelCacheId (1u << 31)
|
||
|
#define kVoxelCacheMiss (0.9f * kFltMax)
|
||
|
|
||
|
struct VoxelCacheData
|
||
|
{
|
||
|
float4 data;
|
||
|
SdfBrushMaterial material;
|
||
|
};
|
||
|
|
||
|
bool useVoxelCache;
|
||
|
RWStructuredBuffer<uint> voxelCacheIdTable;
|
||
|
RWStructuredBuffer<VoxelCacheData> voxelCache;
|
||
|
int voxelCacheSize;
|
||
|
|
||
|
#endif
|
||
|
|