瀏覽代碼

Material textures must be 2d;

bjorn 3 年之前
父節點
當前提交
a7d755d02b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      api/lovr/graphics/Material/setTexture.lua

+ 1 - 0
api/lovr/graphics/Material/setTexture.lua

@@ -26,6 +26,7 @@ return {
       returns = {}
     }
   },
+  notes = 'Textures must have a `TextureType` of `2d` to be used with Materials.',
   related = {
     'MaterialTexture',
     'lovr.graphics.newTexture'