Ver Fonte

highp flag;

bjorn há 5 anos atrás
pai
commit
3955459fd4
2 ficheiros alterados com 4 adições e 0 exclusões
  1. 0 0
      api/init.lua
  2. 4 0
      api/lovr/graphics/newShader.lua

Diff do ficheiro suprimidas por serem muito extensas
+ 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
       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
       of returning a single color.  Each color in the array gets written to the corresponding
       texture attached to the canvas.
       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:
     - 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
       - `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.
       detailed, bumpy appearance.  Currently, this requires the model to have vertex tangents.

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff