Hey,
Trying to get billboarding and scale work in the vertex shader
this makes the scale and billboard work, but the position is wrong
float4 wpos = mul (_Object2World, v.vertex);
o.pos = mul(UNITY_MATRIX_P, mul(UNITY_MATRIX_MV, float4(0,0,0,1)) - float4(wpos.x, wpos.y, wpos.z, 0));
this makes the position and billboard work, but not the scale
float4 wpos = v.vertex;
o.pos = mul(UNITY_MATRIX_P, mul(UNITY_MATRIX_MV, float4(0,0,0,1)) - float4(wpos.x, wpos.y, wpos.z, 0));