Hi:
I've tried to append a very simple line of code onto my vertex shader which works well for everything.
The code is something like this:
output.pos /= output.pos.w;
Yes, I'm doing perspective division by myself. I knew that the hardware will do it for me right after vertex shader.
However, I want to see if anything goes wrong if it's done in vertex shader.
It turned out that everything related to this shader is wrong, not just about the vertex attribute, also the position.
So, what's wrong with that code?
Thanks in advance for your attention.