Browse Source

Spatializer table test;

bjorn 4 years ago
parent
commit
9309200e38
3 changed files with 80 additions and 6 deletions
  1. 5 4
      api/init.lua
  2. 74 0
      api/lovr/audio/getSpatializer.lua
  3. 1 2
      api/lovr/graphics/Shader/init.lua

File diff suppressed because it is too large
+ 5 - 4
api/init.lua


+ 74 - 0
api/lovr/audio/getSpatializer.lua

@@ -16,6 +16,80 @@ return {
       description = 'The name of the active spatializer.'
       description = 'The name of the active spatializer.'
     }
     }
   },
   },
+  notes = [[
+    <table>
+      <thead>
+        <tr>
+          <td>Feature</td>
+          <td>`simple`</td>
+          <td>`phonon`</td>
+          <td>`oculus`</td>
+        </tr>
+      </thead>
+      <tbody>
+        <tr>
+          <td>Effect: Spatialization</td>
+          <td>x (pan)</td>
+          <td>x (HRTF)</td>
+          <td>x (HRTF)</td>
+        </tr>
+        <tr>
+          <td>Effect: Attenuation</td>
+          <td>x</td>
+          <td>x</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Effect: Absorption</td>
+          <td></td>
+          <td>x</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Effect: Occlusion</td>
+          <td></td>
+          <td>x</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Effect: Transmission</td>
+          <td></td>
+          <td>x</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Effect: Reverb</td>
+          <td></td>
+          <td>x</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>setGeometry</td>
+          <td></td>
+          <td>x</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Source Directivity</td>
+          <td>x</td>
+          <td>x</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Source Radius</td>
+          <td></td>
+          <td>x</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Ambisonics</td>
+          <td></td>
+          <td></td>
+          <td></td>
+        </tr>
+      </tbody>
+    </table>
+  ]],
   related = {
   related = {
     'lovr.conf'
     'lovr.conf'
   }
   }

+ 1 - 2
api/lovr/graphics/Shader/init.lua

@@ -10,8 +10,7 @@ return {
     'lovr.graphics.newComputeShader'
     'lovr.graphics.newComputeShader'
   },
   },
   notes = [[
   notes = [[
-    The GLSL version used is 430 on systems that support compute shaders and 150 otherwise.  The
-    version used for WebGL is 300 es.
+    GLSL version `330` is used on desktop systems, and `300 es` on WebGL/Android.
 
 
     The default vertex shader:
     The default vertex shader:
 
 

Some files were not shown because too many files changed in this diff