Hi,
I would like to create this effect with a shader, I am beginning, could you help me achieve this?
I thought about selecting the normals from the top (except for the last vertices), how can I do that? I have got v.normal.xyz… Maybe with a range of angle?
Then shrink the result on the z axis.
Well, just try it out by modifying the vertex position in the vertex shader. You can use both the normal and the object space position to come to some kind of formula for this. Bit hard to guess the exact formula from just this image.
Edit: Duh, the object space position doesn’t give more information than the normals, since they are essentially the same for a sphere besides a constant factor.
So all you have work with is one of the components of the normal. (The one facing up/down.) From that it’s a matter of putting this value in the right formula.