20 lines
262 B
HLSL
20 lines
262 B
HLSL
|
|
#ifndef SLIME_VERTEX_INCLUDED
|
||
|
|
#define SLIME_VERTEX_INCLUDED
|
||
|
|
|
||
|
|
struct Vertex
|
||
|
|
{
|
||
|
|
float3 pos;
|
||
|
|
float2 uv;
|
||
|
|
};
|
||
|
|
|
||
|
|
inline Vertex GetDefaultVertex() {
|
||
|
|
|
||
|
|
Vertex ret;
|
||
|
|
ret.pos = (0).xxx;
|
||
|
|
ret.uv = (-1).xx;
|
||
|
|
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
#endif // SLIME_VERTEX_INCLUDED
|