Browse Source

Slight clarification to texture type detection;

bjorn 2 years ago
parent
commit
9d1c3840b9
2 changed files with 444 additions and 2216 deletions
  1. 442 2214
      api/init.lua
  2. 2 2
      api/lovr/graphics/newTexture.lua

File diff suppressed because it is too large
+ 442 - 2214
api/init.lua


+ 2 - 2
api/lovr/graphics/newTexture.lua

@@ -125,8 +125,8 @@ return {
     If no `type` is provided in the options table, LÖVR will guess the `TextureType` of the Texture
     based on the number of layers:
 
-    - If there's 1 layer, the type will be `2d`.
-    - If there are 6 layers, the type will be `cube`.
+    - If there's only 1 layer, the type will be `2d`.
+    - If there are 6 images provided, the type will be `cube`.
     - Otherwise, the type will be `array`.
 
     Note that an Image can contain multiple layers and mipmaps.  When a single Image is provided,

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