Browse Source

Clarification;

bjorn 4 years ago
parent
commit
2d04a5b7be
2 changed files with 3 additions and 2 deletions
  1. 1 1
      api/init.lua
  2. 2 1
      api/lovr/graphics/setViewPose.lua

+ 1 - 1
api/init.lua

@@ -12028,7 +12028,7 @@ return {
           description = "Sets the pose for a single view.  Objects rendered in this view will appear as though the camera is positioned using the given pose.\n\nTwo views are supported, one for each eye.  When rendering to the headset, both views are changed to match the estimated eye positions.  These view poses are also available using `lovr.headset.getViewPose`.",
           key = "lovr.graphics.setViewPose",
           module = "lovr.graphics",
-          notes = "Non-stereo rendering will only use the first view.\n\nThe inverted view pose (view matrix) is available as a `mat4 lovrViews[2]` variable in shaders.",
+          notes = "Non-stereo rendering will only use the first view.\n\nThe inverted view poses (view matrices) are available as the `mat4 lovrViews[2]` variable in shaders.  The current view matrix is available as `lovrView`.",
           related = {
             "lovr.headset.getViewPose",
             "lovr.headset.setViewPose",

+ 2 - 1
api/lovr/graphics/setViewPose.lua

@@ -65,7 +65,8 @@ return {
   notes = [[
     Non-stereo rendering will only use the first view.
 
-    The inverted view pose (view matrix) is available as a `mat4 lovrViews[2]` variable in shaders.
+    The inverted view poses (view matrices) are available as the `mat4 lovrViews[2]` variable in
+    shaders.  The current view matrix is available as `lovrView`.
   ]],
   related = {
     'lovr.headset.getViewPose',