Hi, I’ve 2 questions for you
- I’ve written a decal routine that produces the decalpolygon based on the vectors of the wall-polygon.
The problem is when the player shoots at the edge of the wall the decal shows up in the room. How to break the decal or clip it with the walledges ?
- I’m going to implement a lensflare effect.
So I need the 2D-Screenposition of my light.
Is there a way with OpenGL to get that position or should I use trig calculations of my own ?