Is there any way to control the clipping plane of the projection matrix from Tier 1 ?
What im trying to do is setup a oblique near clipping plane, to let the gpu clip everything below a water line.
I already done it using discard but it slow everything down as the gpu cant optimize anything when a discard is used.
Also made a transparent sample where all pixels below waterline gets transparent , but this make depth problems in the reflection.
I read that using a clipping plane should be the best/fastest way to do it and the only way to get it working properly on moblies.
Tried the attached scene using discard and got 30 fps , if i remove the discard and just render everything (2 times) i get 60 fps , i expect that if i use a clipping plane i will get "nearly" the same as just rendering everything 2 times ?.
Help please, and thanks
best regards Preben Eriksen,