Skip to content

Commit

Permalink
Merge pull request #4 from RamType0/InstancedConstellationLine
Browse files Browse the repository at this point in the history
Use GPU Instancing for ConstellationLine
  • Loading branch information
Kuwamai authored Oct 26, 2020
2 parents ab22731 + 20312cc commit f9dea1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Assets/HipParticle/Shaders/ConstellationLine.shader
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
#pragma vertex vert
#pragma fragment frag
#pragma multi_compile_fog

#pragma multi_compile_instancing
#include "UnityCG.cginc"

struct appdata
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
UNITY_VERTEX_INPUT_INSTANCE_ID
};

struct v2f
Expand All @@ -34,6 +35,7 @@

v2f vert (appdata v)
{
UNITY_SETUP_INSTANCE_ID(v);
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
UNITY_TRANSFER_FOG(o,o.vertex);
Expand Down

0 comments on commit f9dea1c

Please sign in to comment.