瀏覽代碼

highp flag;

bjorn 5 年之前
父節點
當前提交
3955459fd4
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 0 0
      api/init.lua
  2. 4 0
      api/lovr/graphics/newShader.lua

文件差異過大導致無法顯示
+ 0 - 0
api/init.lua


+ 4 - 0
api/lovr/graphics/newShader.lua

@@ -82,6 +82,10 @@ return {
       instead of the `color` function, and can write color values to the `lovrCanvas` array instead
       of returning a single color.  Each color in the array gets written to the corresponding
       texture attached to the canvas.
+    - `highp` is a boolean flag specific to mobile GPUs that changes the default precision for
+      fragment shaders to use high precision instead of the default medium precision.  This can fix
+      visual issues caused by a lack of precision, but isn't guaranteed to be supported on some
+      lower-end systems.
     - The following flags are used only by the `standard` PBR shader:
       - `normalMap` should be set to `true` to render objects with a normal map, providing a more
       detailed, bumpy appearance.  Currently, this requires the model to have vertex tangents.

部分文件因文件數量過多而無法顯示