Stuff
public text v1 · immutablevertexOUT main(vertexIN vIn, uniform float4x4 modelViewProj, uniform float scale) {
vertexOUT vOut;
float4 offset = float4(normalize(vIn.normal) * 0.01, 1);
float4 position = vIn.position + offset;
// project point onto screen
vOut.ccPos = mul(modelViewProj, position);
// copy position
vOut.objectPos = position.xyz;
// copy Normal
vOut.normal = vIn.normal;
return vOut;
}