View Single Post
  #9  
Old 08-06-2016, 06:51 PM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
I have further questions. Is there a way in Vizard to retrieve a normal buffer? I can get a depth buffer for post-process effects (vizpp_InputDepthTex), but what I need is a texture with the object's/fragment's normals.
How do I do that?

Another question: The help states that the osg_ViewMatrix is available to all shaders used with vizard. Can someone please tell me, how I would get the current view position and the view direction from that matrix?
Thanks!
Reply With Quote