Quantcast
Channel: Questions in topic: "projectionmatrix"
Viewing all articles
Browse latest Browse all 21

Mid-render FOV change

$
0
0
Hi everyone, I was wondering if it is possible to modify a shader so that it changes the fov of the rendered object. I figured it's in the vertex shader. But other than that resources about modifying the projection are scarce. So if anyone can point me to how I would go about modifying, for example, the standard built-in shader of unity so that it can change the FOV for the object rendered with this shader. The goal is as you guessed, to distort one item differently from the others ! Alternatively, is there a way to modify the FOV of the camera in a script just before the object is rendered. I thought OnWillRenderObject would do that, but it is actually called before the whole render process if the item is gonna be rendered. If I put the item on a different RenderQueue, can't I execute a script between 2 render queues (I guess not since this would be expensive, but it doesn't hurt to ask. Just to make it clear, the script solution would be my preferred choice if possible !

Viewing all articles
Browse latest Browse all 21

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>