how can i calculate the position of a point from world coordinates to object space over the modelviewmatrix? I need the position in a vertex shader.
I tried several hours now, but i just dont get it.
I thought it would be the the inverse modelviewmatrix multiplicated by the position, but it doesnt work.
i hope you can help me..