Commit Graph

132 Commits (1a437cbedf94de90d749f426dde09f2466693de2)

Author SHA1 Message Date
Ptolemy cfd39c3663 SL-16606: Add profiler category DRAWPOOL 2022-01-14 11:50:19 -08:00
Dave Houlton 7a5ef999d0 SL-16386 consolidate all VertexShader capability checks to a single LLPipeline::shadersLoaded() 2021-11-30 17:04:35 -07:00
Dave Houlton 68e09edad0 SL-16386 remove references to (const true) LLGLSLShader::sNoFixedFunction 2021-11-30 17:04:35 -07:00
Dave Parks d2dce17803 SL-16197 Optimize LLEnvironment handling of shader uniforms. Instrument LLSD. Enable Fast Timers when Tracy is enabled to catch Fast Timer overhead. 2021-10-19 02:26:41 +00:00
Ptolemy ab02a6dfd4 SL-14706 Merge Sovereign Engineer's fix for stars not centered around camera: Stars render around center of sim instead of center of camera. 2021-01-29 18:41:04 -08:00
Dave Houlton 78da30936c Revert "SL-13768 Remove glow from moon when sun is down due to it using the sun glow setting (pull request #297)" 2020-09-15 21:25:28 +00:00
Michael Pohoreski 92f5d5428e Merged in SL-13768_remove_moon_glow (pull request #297)
SL-13768 Remove glow from moon when sun is down due to it using the sun glow setting
2020-09-12 04:11:11 +00:00
Ptolemy 874d7e7e02 SL-13465 Restore Pre-EEP haze effecting moon 2020-09-11 20:46:55 -07:00
Ptolemy d26f17efd5 SL-13768 Remove glow from moon when sun is down due to it using the sun glow setting 2020-09-11 19:01:08 -07:00
Dave Houlton 7396879ef6 SL-13768 remove moon glow from sky and clouds 2020-08-28 09:50:01 -06:00
Andrey Lihatskiy 7a311fe30e Merge branch 'master' into DRTVWR-497 2020-04-20 21:21:12 +03:00
andreykproductengine 4f5d785226 SL-12014 Animesh is now a separate rendering type 2019-10-25 17:32:19 +03:00
Graham Linden 81659325b8 SL-11373
Fix class2/windlight clouds.
2019-06-20 08:49:09 -07:00
Graham Linden 653133b9c0 SL-11370, SL-11372, SL-11337
Fix culling on Low+ water reflection pass.

Make Mid+ / High use class1 deferred sky again (no rainbows, but faster!).

Fix setting of cloud color for deferred sky/cloud shaders.

Put water reflections back in wrong colorspace for consistency with release.
2019-06-11 13:03:06 -07:00
Graham Linden 49eae58bd0 SL-10969
More tweaking ambient light.
2019-06-06 16:32:55 -07:00
Graham Linden 2408e8be5e SL-11357
Nerf moisture and ice levels iff there's no sun or moon to generate light to refract.
2019-06-05 09:15:19 -07:00
Graham Linden c4032528af Roll back sRGB decode changes from contrib for now.
Fix direct light matching across alpha/blended-material/deferred.

Get diffuse lighting to match from Low to Ultra.
2019-05-02 13:49:35 -07:00
Graham Linden 1ff876a961 SL-11071
Make sun disc and moon shaders use sRGB hardware tex sampling.

Remove sun disc shader use of fullbright transport (fogging).
2019-04-30 12:19:35 -07:00
Graham Linden d2419ca3ca SL-10988
Make moon disc image render only if current or previous textures are available.
2019-04-18 08:43:37 -07:00
Geenz 0272c47e5a Tweaked naming a bit, also white space.
Will wait for a response from @graham_linden regarding moving the sRGB conversion functions in llmath.h to llrender.
2019-03-29 11:57:45 -07:00
Geenz f3ea75cfa9 Back out a couple of not-so-well tested changes. 2019-03-29 10:55:07 -07:00
Geenz 57d88a8a98 Gamma correction pass 2:
Make sure lights are in the correct color space.
Bonus: cache the sRGB color in setLightColor on point and spot lights.  Frees up a pow and some multiplies on the CPU every frame.
2019-03-29 08:11:56 -07:00
Graham Linden 7021c7a8db Remove unused cloud shadow shader var for Clang. 2019-03-14 07:23:47 -07:00
Graham Linden 898c9f4421 Mods to make merge with viewer-release have less whitespace-only change and fix diffs between EEP and VR. 2019-03-13 13:21:48 -07:00
Graham Linden 659eaf045e Fix line-endings. 2019-03-04 15:40:07 -08:00
Graham Linden d8eff424a5 SL-10664 2019-03-02 07:17:46 -08:00
Graham Linden 65927e0a76 SL-10181, SL-10546
Fix distortion map rendering in deferred mode not including underwater fog effects.

Fix distortion map rendering not including post-deferred content at all.

Fix distortion map rendering not including anything but sky when camera is underwater.

Update sun_up_factor/sunmoon_glow_factor uniforms even when sun disc isn't in use.
2019-02-13 13:09:14 -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 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
Graham Linden 966dc7fc8f SL-10276
SL-9851

Fix cloud shaders to ignore clouds when cloud_scale is 0.

Fix creation of heavenly body geo to avoid degenerate vector math
and not randomly flip orientation when crossing zenith.

Add sun_up_factor to eliminate sun glow around moon when sun is down.
2019-01-24 14:54:11 -08:00
Graham Linden 2312efbf3a Add new shaders for generating shadows from clouds.
Add new class3 shadow shaders for VSM shadows.

Add disabled shadow pass in WLSky for using above.
2019-01-04 10:17:09 -08:00
Graham Linden 8c128f5b63 Mods to allow using ALM rendering in water reflections so
the reflections will better match what they're reflecting
when ALM is enabled.
2018-12-10 15:02:34 -08:00
andreykproductengine 7650fb53c8 [EEP] NULL gAtmosphere crash fix 2018-12-05 18:10:08 +02:00
Graham Linden 3494fa3cfe SL-9806 stop rendering stars post deferred so they can be depth sorted properly with clouds and heavenly bodies. 2018-11-02 17:30:54 +01:00
Graham Linden 9a8e124fde SL-9976 change moon blend/brightness handling in shaders and cleanup extraneous GL state management. 2018-10-30 18:17:47 +01:00
Graham Linden 56355cf354 SL-9966
Port over transport, gamma, atmospherics shader stub updates for per-fragment atmospherics.

Fix bindings of current/next noise map when current and next are the same (select only one and force blend factor to 0).
2018-10-30 15:56:08 +01:00
Graham Linden 769be699a9 SL-9766 Move up blend_factor init so we can override if we're short of blendable noise maps. 2018-10-30 00:46:28 +01:00
Graham Linden 38a6f3b0df SL-9966 fix cloud noise map bindings when current and next are identical. 2018-10-30 00:22:00 +01:00
Graham Linden 536799d07e SL-9977
SL-9973
2018-10-29 23:02:20 +01:00
Graham Linden dba9521cf6 SL-9806
Get dome rendering to not assert the depth test state behind deferred render's back.

Make clouds write and test depth to give stars something to depth test against.

Add z-bias in star vert shader to force some depth testing of stars against clouds.
2018-10-22 19:23:10 +01:00
Graham Linden f8aac19237 SL-1289
add cloud_variance control for randomized perturbance of clouds to break up tiling monotony
2018-10-09 18:44:43 +01:00
Graham Linden ffc6393309 SL-9751
Add optional moon brightness setting
2018-10-08 22:08:35 +01:00
Graham Linden 5eed233618 SL-1925
More settings for rainbow/halo atmospheric effects, final default asset UUIDs, and shader mods.
2018-10-05 21:32:42 +01:00
Graham Linden b4d6611ea7 SL-9775
Add LLPointer<> on stack to avoid textures being deleted out from under the sky code.

Make textures used by sky settings remove their faces from media textures.

Add ability to detect when a given texture is viewer media with vfunc.
2018-10-02 00:57:32 +01:00
Graham Linden ae099c639f SL-1655
Make water horizon consistent between ALM and non-ALM rendering again.

Fix using deferred sky rendering in reflections.

Make matrix mode explicit around push/pop for safety.
2018-10-01 17:16:58 +01:00
Graham Linden c9b2759469 SL-1475
Make stars use higher alpha and brighten reflected color before mixing to get stars to show up in reflections on water.
2018-09-18 21:54:38 +01:00
Graham Linden 9581a197ac SL-1873
Make range of star brightness in code and in UI 0-500 (not 512).
2018-09-17 19:48:58 +01:00
Graham Linden 211ae97cbd SL-9635 remove init of libatmosphere causing crashes on Intel HD 2018-09-12 20:15:23 +01:00