summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.h
diff options
context:
space:
mode:
authorBeq Janus <beqjanus@gmail.com>2024-07-02 18:57:39 +0100
committerGitHub <noreply@github.com>2024-07-02 12:57:39 -0500
commit475d0df4c152972665c978f7b0991f8726def03a (patch)
tree3d50a17855343196423382a741096f010f1e305a /indra/newview/llappviewer.h
parent886be2faf19343843d8b2bf7a24c91bdeb1a9294 (diff)
Experimental fix for blurry textures (#1875)
This change removes the distance based bias (which is a large contributor to premature blurring) but adds a check using the importance factor to give some balance. importance should be between 0 and 1 and is higher when the texture is facing the camera, lower when it is side on, The unimportance setting defines the cutoff vaklue below which we'll consider the textures worth "down scaling" by the bias factor. The setting is inplace to allow us to play with this, 0.25 is current default. Note this change moves the calcPixelArea() call to the top BEFORE we user getPixelArea(). Either that call is entirely redundant (i.e. if calc was called earlier in the frame) or we were using the stale pixelArea (one frame behind). If the former is true then it might be faster to just do an AABB frustum check.
Diffstat (limited to 'indra/newview/llappviewer.h')
0 files changed, 0 insertions, 0 deletions