summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl
AgeCommit message (Collapse)Author
2024-04-29#824 Process source files in bulk: replace tabs with spaces, convert CRLF to ↵Andrey Lihatskiy
LF, and trim trailing whitespaces as needed
2023-10-11SL-20440 Fix for projector ambiance destroying PBR shading. Also fix ↵RunitaiLinden
longstanding bug with hard line in projector ambiance lighting. Incidental decruft of legacy_adjust and LOCAL_LIGHT_KILL, etc.
2023-09-11SL-19842 WIP -- Now that probes can override ambient, unroll ambient ↵RunitaiLinden
darkening hacks.
2023-08-22SL-19842 WIP -- Move sky auto adjustment magic numbers to debug settings.RunitaiLinden
2023-06-01DRTVWR-559 Revert skies to be very close to release and disable tone mapping ↵RunitaiLinden
when probe ambiance is zero. Hack for desaturating legacy materials has been removed for performance and quality reasons. Adds a new setting for auto adjusting legacy skies. This is the PBR "opt out" button. If disabled, legacy skies will disable tonemapping, automatic probe ambiance, and HDR/exposure. If enabled, legacy skies will behave as if probe ambiance and HDR scale are 1.0, and ambient will be cut in half. HDR scale will act as a sky brightener, but will automatically adjust dynamic exposure so the sky will be properly exposed. If you want relatively even exposure all the time, set HDR Scale to 1.0. If you want a high range of exposures between indoor/dark areas and outdoor/bright areas, increase HDR Scale. Also tuned up SSAO (thanks Rye!). Reviewed with Brad.
2023-02-03SL-19148 Decruft followthrough -- decruft shader tree and some remaining ↵Dave Parks
forward rendering code.
2022-09-30SL-18239 Unify PBR and non-PBR treatment of ambient/SSAO/irradiance. ↵Dave Parks
Restore SSAO to release version.
2022-09-27SL-18190 WIP -- Take 2 on linear space windlight (more methodical approach ↵Dave Parks
-- make desired interface but brute force color conversions). Placeholder PBR water and move to deprecate forward rendering shaders.
2022-07-08SL-17703: PBR: Sun/Moon lighting is in sRGBPtolemy
2020-09-16DRTVWR-4976 Misc shader cleanup.Dave Houlton
Removed some potential div-by-0 NaNs and a mangled clamp.
2020-09-02SL-12978 & SL-13743. Remove abrupt changes in sun intensity calc, preserve ↵Dave Houlton
original fall-off. Had to find a balance in the sunlight intensity calculation that behaves correctly for both these issues.
2020-09-02SL-12978 clang-format shader file (whitespace)Dave Houlton
2020-09-02SL-12978 de-obfuscate, banish the tempsDave Houlton
2020-09-02SL-12978 refactor sunlight intensity calculationDave Houlton
2020-08-21SL-13743 revert part of SL-12978 change that broke low-angle sunlightDave Houlton
2020-07-02SL-13539 Fix a white artifact over the water at certain anglesPtolemy
2020-07-01SL-12978 Add note about similar code in C++ and GLSLPtolemy
2020-07-01SL-12978: CleanupPtolemy
2020-07-01SL-12978: Fix off-axis water dimmingPtolemy
2020-03-05WIP - Windlight sun lighting should happen in sRGB space, not linear space. ↵Runitai Linden
This keeps ambient from getting overblown and better matches environment lighting with ALM on/off.
2019-09-09SL-1144Graham Linden
The un-water-fogged gap area was rendering while we were still above water, but the water surface was being near culled. I've re-enabled preculling water objects (which also fixes issues with water culling vs spinning the camera) and it seems to behave correctly.
2019-07-23SL-11621Graham Linden
Remove all references to unused shader var global_gamma. Remove many unused decls for gamma from shaders. Make post-deferred gamma correction use display_gamma. Make setting display_gamma use the correct RenderDeferredDisplayGamma setting.
2019-07-15SL-11590Graham Linden
Modified windlight shader to remove adjustment to glow.z
2019-07-10SL-1491Graham Linden
Make sun additive contribition depend on facing the sun (without breaking fog). Put back scaling factor keeping sun contrib from blowing out with new FS param range for glow.
2019-07-03SL-11545, SL-11543, SL-10625Graham Linden
Fix emissives without normal maps clobbering the alpha output in materialF. Modify glow size calc to get close to pre-EEP sun glow behavior (may require sky vert settings >= mid). Make bake ignore alpha readback for Intel until we can determine why their drivers now go boom.
2019-06-10SL-10969, SL-11051Graham Linden
Make fullbright alpha mask with mask cutoff == 0 not generate shadows. Adjust handling of ambient across forward and deferred again.
2019-06-06SL-10969Graham Linden
More tweaking ambient light.
2019-06-05SL-9989Graham Linden
Clamp fog distance multiplier to >= 0.05 and adjust min range on control as well. Make sky shaders use dist mul consistently.
2019-06-03SL-10966Graham Linden
Fix light atten and transmittance calcs breaking ambient color contrib to fog. Needs to be tested on DRTSIM-415 or better to get legacy viewer settings that match EEP.
2019-05-29SL-10969Graham Linden
Modify ambient handling and forward projector lighting again to stamp out alpha fires.
2019-05-21SL-11238Graham Linden
Fix ambient light inputs to the renderer. Fix 3rd sky shader w/ mistaken density mod conversion. Make ambient clamp apply to all modes. Tune ALM ambient clamp to match non-ALM.
2019-05-16Revert lighting changes for 10856 causing knock-on.Graham Linden
2019-05-16SL-11195Graham Linden
Adjust ambient clamp up to get closer match to release viewer for existing content.
2019-05-13SL-10856Graham Linden
Modify calc of sunlight to avoid clipping in gamma correct on values outside 0-1 range. Modify shaders to put back ambient clamp tuned to be close to ambient contrib in low/mid lighting.
2019-05-07SL-11055, SL-10966, SL-11087Graham Linden
Make haze look more like WL. Make lack of sun and moon mean black and fixed dir to prevent spooky underlighting.
2019-05-02Roll back sRGB decode changes from contrib for now.Graham Linden
Fix direct light matching across alpha/blended-material/deferred. Get diffuse lighting to match from Low to Ultra.
2019-04-26SL-11041Graham Linden
Put ambient clamp threshold back for lighter shadows but closer match to release lighting.
2019-04-25SL-10904, SL-10998, SL-11018Graham Linden
Fix handling of 1/light_y when y was tiny but getting even tinier. Add similar adjustment to shader version of same calc.
2019-04-23SL-10901Graham Linden
Bias shadow sampling and allow control of how dark shadows are (clamped ambient).
2019-04-23SL-1491Graham Linden
Modify handling of additive to make extreme range of glow focus/size safe from lens flare artifacts.
2019-04-22Fix mismatch between release and EEP in sunlight and ambient color from ↵Graham Linden
settings.
2019-04-19Fix sky and cloud shader usage of density_multiplier (not re-ranged from FS ↵Graham Linden
to WL). Remove all refs to now unused calcFragAtmospherics.
2019-04-18SL-10966Graham Linden
Don't re-range density multiplier twice.
2019-04-18SL-10966Graham Linden
Fix use of density and distance multipliers in atmospherics to use original pre-EEP range instead of FS expanded range. Modify additive calc to restore old behavior (probably reverts fix for "lens flare" bug).
2019-04-15Fix line-endings on new shader file from contribution.Graham Linden
2019-04-10Fix missing sentinel in shader file to avoid spurious complaints for hg ↵Graham Linden
policy hooks.
2019-04-10Separate out vertex program objects from fragment program objects and use it.Geenz
Given that mShaderObjects only ever expects one copy of a given shader object (leading to lots of "shaderV" and "shaderF"), it made having utility shaders a bit more difficult to incorporate. This change makes sure the two are separated. Using this over a multimap largely for readibility. Also, actually, you know, use this functionality. --HG-- branch : OPEN-340
2019-04-09First stab at moving atmospheric var calcs to its own utility shader.Geenz
Still some work to go here. Largely related to how certain values (i.e., SSAO mix values) are supplied. But so far, so good. --HG-- branch : OPEN-340