You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The repository is the practice project of Geometry shader in Unity engine.
Define the Method of Geometry Shader
#pragma geometry geom
Define Data Structure
//The data structure from the application to the vertex shader.
struct a2v
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
//The data structure from the vertex shader to the geometry shader.
struct v2g
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
//The data structure from the geometry shader to the fragment shader.
struct g2f
{
float4 vertex : SV_POSITION;
float2 uv : TEXCOORD0;
};