View Single Post
  #2  
Old 05-09-2013, 04:00 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Can you explain what you are trying to accomplish? The getTexCoord() function will return the texture coordinates you assigned to the vertex. Your code is not specifying any texture coordinates, so getTexCoord() will return [0,0,0].

Texture coordinates for cube maps are generally specified as a 3 component normalized direction vector from the center of the cube.
Reply With Quote