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.
45 lines
795 B
Plaintext
45 lines
795 B
Plaintext
2 weeks ago
|
/******************************************************************************/
|
||
|
/*
|
||
|
Project - MudBun
|
||
|
Publisher - Long Bunny Labs
|
||
|
http://LongBunnyLabs.com
|
||
|
Author - Ming-Lun "Allen" Chou
|
||
|
http://AllenChou.net
|
||
|
*/
|
||
|
/******************************************************************************/
|
||
|
|
||
|
#ifndef MUDBUN_GEN_POINT_DEFS
|
||
|
#define MUDBUN_GEN_POINT_DEFS
|
||
|
|
||
|
#include "BrushDefs.cginc"
|
||
|
|
||
|
struct GenPoint
|
||
|
{
|
||
|
float4 posNorm;
|
||
|
|
||
|
int4 boneIndex;
|
||
|
|
||
|
uint boneWeight;
|
||
|
int iBrushMask;
|
||
|
uint vertId;
|
||
|
uint atSmoothEdge;
|
||
|
|
||
|
float sdfValue;
|
||
|
float norm2d;
|
||
|
float2 uv;
|
||
|
|
||
|
SdfBrushMaterialCompressed material;
|
||
|
};
|
||
|
|
||
|
#ifdef MUDBUN_IS_COMPUTE_SHADER
|
||
|
RWStructuredBuffer<GenPoint> aGenPoint;
|
||
|
#else
|
||
|
StructuredBuffer<GenPoint> aGenPoint;
|
||
|
#endif
|
||
|
|
||
|
int maxGenPoints;
|
||
|
|
||
|
|
||
|
#endif
|
||
|
|