Thread: Shader Trouble
View Single Post
  #4  
Old 09-24-2012, 01:39 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You need to pass the inverse of the view matrix:
Code:
m = viz.MainWindow.getMatrix().inverse()
Reply With Quote