瀏覽代碼

Merge pull request #8885 from Calinou/resolution-scaling-fix-mipmap-bias-formula

Fix missing texture mipmap bias formula in Resolution scaling

(cherry picked from commit 6ac586bc5595a94f60fc1cc031f7b5c0ce65956d)
Matthew 1 年之前
父節點
當前提交
ed5e025bf9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tutorials/3d/resolution_scaling.rst

+ 2 - 1
tutorials/3d/resolution_scaling.rst

@@ -223,7 +223,8 @@ Textures used in 2D don't have mipmaps enabled by default, which means only 3D
 rendering is affected unless you enabled mipmaps on 2D textures in the Import
 rendering is affected unless you enabled mipmaps on 2D textures in the Import
 dock.
 dock.
 
 
-The formula used to determine the texture mipmap bias is: TODO
+The formula used to determine the texture mipmap bias is:
+``log2f(min(scaling_3d_scale, 1.0)) + custom_texture_mipmap_bias``
 
 
 To counteract the blurriness added by some antialiasing methods, Godot also adds
 To counteract the blurriness added by some antialiasing methods, Godot also adds
 a ``-0.25`` offset when FXAA is enabled, and a ``-0.5`` offset when TAA is
 a ``-0.25`` offset when FXAA is enabled, and a ``-0.5`` offset when TAA is