#StructuredBuffer is not read from when using a define in the vertex shader
1 messages · Page 1 of 1 (latest)
code for setting the buffer from a script - https://pastebin.com/Ja0bpPKh
shader code: https://pastebin.com/TCfqZWDV
Varyings vert(Attributes IN)
{
Varyings OUT;
OUT.positionHCS = TransformObjectToHClip(IN.positionOS);
OUT.uv = IN.uv;
OUT.color = IN.color;
OUT.vertexColor = float4(1,1,1,1);
#ifdef VERTEXCOLORS_ON
OUT.vertexColor = _VertexColors[IN.vertexID];
#endif
return OUT;
}
fundamentally its this part, in editor nothing appears to happen with the define actually included
ahh