Commit Graph

142 Commits (5d844d2646166fe112bc58362b7dfd4e24fa76ec)

Author SHA1 Message Date
Graham Linden e9dbee0026 SL-11238
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-21 16:00:45 -07:00
Graham Linden b3c0218a31 Revert lighting changes for 10856 causing knock-on. 2019-05-16 14:14:02 -07:00
Graham Linden a984c5e66a Merge 2019-05-14 07:57:35 -07:00
Graham Linden 041d92b6bd Force file update. 2019-05-14 07:56:41 -07:00
Graham Linden b143aa96fc SL-10856
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-13 15:33:48 -07:00
Graham Linden 989de25f18 SL-11086
Re-fix sun/moon glow factor and make it depend on moon brightness.

Make cloud shaders use sunlight color exclusively for consistency when moon is up or down.
2019-05-07 16:32:34 -07:00
Graham Linden 1522a99024 SL-11070
Gave clouds the Bob Ross treatment.
2019-05-03 10:12:56 -07:00
Graham Linden 906b0be675 SL-11087, SL-11086, SL-11092
Fix sun/moon glow factor bustage.

Make darkness an option.

Fix moon fade shader logic getting confused when sun was below horizon.
2019-05-03 08:47:13 -07:00
Graham Linden 29f8e04ddb SL-11065
Modify is sun up logic to exclude condition of moon.
2019-04-29 13:07:57 -07:00
Graham Linden 5766325290 SL-10904, SL-10998, SL-11018
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-25 13:02:24 -07:00
Graham Linden 48ed3f9318 Put warnings on sun/moon direction as they were. 2019-04-25 11:46:56 -07:00
Graham Linden 5f4b93466c Remove bughunting asserts. 2019-04-25 11:44:48 -07:00
Graham Linden 4d6cb310ec Remove unused vars making Clang warnerror. 2019-04-25 11:43:16 -07:00
Graham Linden 4ed05fc84f Fix dark ALM and strangeness at Mid lighting (class 3 but with a darkness about it).
Make a distinct class3/lighting/lightV which boosts to WL levels (* 2.0)
and make lighting without WL atmo enabled use class 2 or below.

Make forward shaders (alpha and materialF with alpha-blend mode on) more consistent with deferred lighting.
2019-04-25 10:59:00 -07:00
Graham Linden 4d76ba2d23 Fix mismatch between release and EEP in sunlight and ambient color from settings. 2019-04-22 10:21:10 -07:00
Graham Linden 759525040a SL-10912
Fix conversion of star brightness, density mult, and distance mult to legacy ranges.

Make settings look in both legacyhaze and top-level settings for haze params.
2019-04-08 13:07:44 -07:00
Graham Linden 4490399cc5 Fix windows line endings. 2019-03-29 07:58:45 -07:00
Graham Linden 823172cab9 SL-10831
Make moon brightness env setting affect moon diffuse/ambient color combo so it affects in-world lighting.

Adjust how the moon brightness affects the moon disc texture rendering (washes out less).
2019-03-28 14:18:59 -07:00
Graham Linden 9dee4149ae Remove remaining 0.5/1.5 fudge factors on lighting radius/falloff params.
Make moonlight darker and slightly bluish for scotopic feel when moon is primary.
2019-03-26 13:37:07 -07:00
Graham Linden 446afe2d1a Make whether the sun or moon is primary part of llrender light state so we can set uniforms for shaders along with other light params.
Fix atten calcs to not use abs val.
2019-03-26 08:21:53 -07:00
Graham Linden a10ec81e82 SL-10743, SL-10744
Don't step on SUNLIGHT_COLOR uniform w/ syncLightState competing set.

Put drawpool alpha render loop lighting setup changes as they were
(this will give back some performance and possibly require reopening 10566).
2019-03-15 08:13:04 -07:00
Rider Linden 2401712d10 SL-9660: Next pass cleanup. Removed and downgraded a number of logs. Removed refs to LAPAS. Better sync with legacy regions. 2019-02-20 15:20:30 -08:00
Graham Linden 3e0c9087cd SL-10414 2019-02-08 14:29:55 -08:00
Graham Linden 4952736a06 SL-10486
Use brighter moon texture for both default and blank moon texture ids in picker.
2019-02-07 11:06:03 -08:00
Graham Linden 8890c3238a SL-10478
Fix side-effects of having both sun and moon as potential directional light contributors.
We pass an int to the shader indicating which to prefer instead of making per-pixel decisions
and pass the moonlight color/di independently.

Obsolete llsettingssky fade color which was unused elsewhere and cached for no reason.
2019-02-06 16:42:23 -08:00
Graham Linden 8b4a86db29 Remove MSVC pragma to make debugging feasible in RelWithDebInfo. 2019-02-01 13:43:49 -08:00
Graham Linden 5a8610ccb7 SL-9996, SL-1130, SL-5546
Fix bug with setting texture matrix for rigged mesh.

Fix z-fighting between sea and sky in ALM by cheating sky, stars, and moon using gl_FragDepth.

Fix handling of atmospheric haze glow w.r.t independent sun/moon positioning
(we can no longer depend on them being mutex to each other).
2019-02-01 13:41:31 -08:00
Graham Linden db97bb5148 Roll back attempted fix for 9996 on ALM which has unacceptable knock-on effects. 2019-02-01 09:49:55 -08:00
Graham Linden 50b383e5aa Fix issue with OSX shader compiler not implementing #if correctly (nice job, Timmy). 2019-02-01 09:45:07 -08:00
Rider Linden c7e02b0835 SL-9925: Viewer now shows an error message if import from legacy windlight fails. 2019-01-30 14:36:46 -08:00
Rider Linden f42ac5b94e SL-10387: Move settings intjection to a setting object (and out of llEnvironment) 2019-01-22 09:24:11 -08:00
Rider Linden 38c84545cc SL-9917: New default sun texture, blank moon is now no image. 2019-01-15 14:40:36 -08:00
Graham Linden 368602fb81 Merge 2019-01-08 09:47:21 -08:00
Rider Linden 1871f03d12 SL-10067, SL-9917: Updated UUIDs for sun and moon textures and to corrected known skies. 2019-01-07 17:00:01 -08:00
Graham Linden 07bff3129a Add new shaders for advanced atmo SH env lighting calcs. 2018-12-19 14:59:19 -08:00
Rider Linden 9475a593a1 Merge 2018-12-12 14:07:56 -08:00
Rider Linden 70ac8d9fa7 SL-10238: Viewer spport for push notifications from the simulator contaiting partial groups of settings. Blend these settings into the current environment. 2018-12-12 14:07:23 -08:00
Graham Linden b6fa72d3c4 SL-10055
Modify handling of directional light to prefer sun when it is up but use moon dir/color when it is alone in the sky.

Modify handling of shader in shaders to get some shadowing of ambient and nighttime shadowing.
2018-12-03 15:33:15 -08:00
maxim_productengine 655e1d1900 SL-10086 FIXED [EEP] Rainbow and Halo use wrong textures 2018-11-19 15:59:00 +02:00
Rider Linden e6b5ed3fef Merged in graham_linden/viewer-eep-fixes (pull request #178)
Default
2018-11-01 18:12:19 +00:00
Graham Linden fb335cc243 SL-10000 fix storing of ambient value when converting legacy settings 2018-11-01 18:26:24 +01:00
andreykproductengine 64db1f4820 SL-9793 EEP Clouds vanish and reappear abruptly if one of textures is not set 2018-11-01 18:17:43 +02:00
andreykproductengine 86419eb11b SL-1476 EEP Better shader transitions 2018-10-30 01:14:21 +02:00
Rider Linden 2ee1f40411 Merged in andreykproductengine/maint-eep (pull request #169)
SL-1476 EEP Better shader resets and transitions

Approved-by: Graham Madarasz <graham@lindenlab.com>
2018-10-29 23:05:16 +00:00
Graham Linden 536799d07e SL-9977
SL-9973
2018-10-29 23:02:20 +01:00
andreykproductengine 659d14504f SL-1476 EEP Better shader resets and transitions 2018-10-29 18:18:20 +02:00
Graham Linden 0532c644a3 Merge 2018-10-19 16:58:52 +01:00
Graham Linden 3447621a15 Port sim-side changes to back-conversion of new settings to legacy.
Fix validating of density multiplier to clamp >= 0.0001f.

Port fix to setter for ambient color in sky settings.
2018-10-18 21:18:40 +01:00
Rider Linden 6cdcc7fe2e SL-9889: New reconverted default assets 2018-10-17 12:16:24 -07:00
Graham Linden c0b86245cd Remove redundant set of moon default tex id. 2018-10-09 18:46:07 +01:00