Commit Graph

153 Commits (77cf4588dfa0213b8166b5575868df75b411a824)

Author SHA1 Message Date
Graham Linden 7f24395889 SL-11318
Make alpha pass start with no shader bound.

Make diffuse mode alpha-blended fullbrights get into alpha pass properly.
2019-06-19 08:31:43 -07:00
Graham Linden 58f7b981bd SL-11337
Fix handling of ambient (was getting reset to 1,1,1,1 unintentionally).

Modify shaders to balance ambient across render modes again.
2019-05-31 13:47:44 -07:00
Graham Linden 2d514e4b10 SL-10763
Fix broken logic for alpha drawpool when rendering with basic shaders off.

Force unbind of 2nd tex unit that we use during water rendering.
2019-03-19 17:24:16 -07:00
Graham Linden 69f5ab9004 Make alpha drawpool optimizations an opt-in render debug setting for the adventurous. 2019-03-15 14:31:32 -07:00
Graham Linden d5f3e7f28e Disable optimizations to batch fullbright and emissive draws together to minimize GL blend state changes. 2019-03-15 14:09:23 -07:00
Graham Linden 83941a5ec6 Restore optimizations for fullbright/emissives with changes to fix lighting breakage when they're in play. 2019-03-15 13:05:56 -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
Graham Linden 3396b728d2 Don't rebuild reflection when only edge water patches are in play.
Use (Restore)TexSetup for tex binding (should be equivalent now).

Simplify uniform management in alpha drawpool loop.

Fix wrong modelview mat being used for distortion map gen.
2019-03-05 09:35:04 -08:00
Graham Linden f3303654a5 Roll back even more alpha draw pool optimizations that break particles. 2019-03-04 16:20:31 -08:00
Graham Linden 659eaf045e Fix line-endings. 2019-03-04 15:40:07 -08:00
Graham Linden cc43bee5b1 Factor emissives and fullbrights out of alpha draw pool loop of death. 2019-03-04 14:13:27 -08:00
Graham Linden f1fe689e18 SL-10566
Put back old alpha pool draw loop with option to render emissives out of order to save state changes.
2019-03-04 13:19:39 -08:00
Graham Linden 0b4982ac89 Roll back optimizations to lldrawpoolalpha causing emissive strangeness and alpha materials lighting errors. 2019-03-04 10:31:55 -08:00
Graham Linden 552267f1c9 Fix unused local var 'partition' and avoid assert in rendering highlights. 2019-03-04 09:50:11 -08:00
Graham Linden 45a541d2d5 SL-10566
Disable pre-cull of water causing refraction/reflection map generation more than is necessary.

Re-org alpha draws to limit state changes based on render type.
2019-03-04 08:04:18 -08:00
Graham Linden 4c3050a395 SL-10664, SL-10666
Fix up culling issues from perf work and fix Depth of Field rendering to get depth values properly.

Baseline for performance work.
2019-03-03 10:42:19 -08:00
Graham Linden c1d2416826 EEP performance WIP
Mods to improve alpha obj render performance.

Removes hacky fix for HUD elements getting atmospherics.

Re-orders rendering of glow to remove ~10ms/frame of shader re-re-rebinding.

Fix up default classes and basic shader loading (remove unused shared modules).
2019-02-28 14:06:19 -08:00
Graham Linden d7ad30a2d4 SL-10566 part the fourth
Fix water rendering causing distortion map update very frame.

Reduce binds in alpha draw pool for HUD atmo suppression (may regress HUD lighting weirdness).

Add ability to retrieve current user clip plane so it can be saved/restored around water map gen.

Leave render type masks as is after reflection map render to get detail filtering applied to distortion map again.

Re-enable occlusion in distortion map rendering.
2019-02-27 17:07:31 -08:00
Graham Linden 7e9033821a De-duplicate deferred gbuffer access for getPosition/getNorm.
De-duplicate ambient occlusion shader code and move to new aoUtil.glsl

Split shared shadow tap funcs into shadowUtil.glsl
2018-12-06 10:59:11 -08:00
Graham Linden 1df7760d31 SL-9632 add uniform and code to supress atmospherics in all shaders that could be used by HUDs
Make sky and cloud shaders use common scaleSoftClip implementation in gammaF.glsl
2018-09-14 21:52:52 +01:00
maxim_productengine 984ea33f7b MAINT-8750 Add transparency indicator for invisiprims. 2018-06-14 18:51:18 +03:00
andreykproductengine 9437d1511e merge from viewer-release 2018-06-01 01:18:47 +03:00
maxim_productengine c9fed71e60 MAINT-8649 FIXED CTRL+ALT+T does not make alpha masking textures visible 2018-05-17 18:12:04 +03:00
ruslantproductengine 325c076d09 MAINT-7213 Shared media (media as a texture) unusable with transparent mesh
New outline selection around mesh objects.
2017-10-26 18:33:08 +03:00
andreykproductengine 791b0de262 MAINT-6790 Fixing log spam 2016-10-11 18:16:11 +03:00
Oz Linden c8726aba30 remove execute permission from many files that should not have it 2015-11-10 09:48:56 -05:00
Richard Linden 17e9c872ad Automated merge with http://bitbucket.org/lindenlab/viewer-release 2013-11-11 19:17:49 -08:00
Richard Linden 697d2e720b renamed TimeBlock to BlockTimerStatHandle 2013-10-15 20:24:42 -07:00
Richard Linden 80dfbbaacd merge from viewer-release 2013-10-08 11:59:24 -07:00
Richard Linden 59628d6f85 Automated merge with http://bitbucket.org/lindenlab/viewer-release 2013-10-01 14:28:39 -07:00
Graham Linden c56b410bdb BUG-3984 fix broken rendering of particles using blend funcs 2013-09-25 14:08:58 -07:00
Graham Linden 571920c7b4 BUG-3982 add code to subtract the lack of not removing the removal of backfaces for particles (make particles render double-sided again) 2013-09-25 12:29:02 -07:00
Graham Linden 2a03e8f9fb MAINT-3172 fix rendering regressions from release mergedown 2013-09-20 16:44:39 -07:00
Graham Linden 95e34d86b9 The unbearable lightness of being norspec 2013-09-18 18:24:16 -07:00
Richard Linden cbe397ad13 changed fast timer over to using macro
another attempt to move mem stat into base class
2013-09-05 14:04:13 -07:00
Graham Linden 8675ed0491 Fix merge regressions from missed changes to LoD updates 2013-08-19 16:04:28 -07:00
Arun Bapu be6007e1ac Merge 2013-08-19 11:58:16 -07:00
Arun Bapu 55c36ab7db Fix for NORSPEC 271 - Transparent prims in Materials Viewer are incorrectly affecting depth of field by modifying the depth buffer 2013-08-14 11:35:06 -07:00
Graham Linden 93b3f1297e MAINT-3338 fix disable of particle glow on false suspicion of lying network data 2013-10-21 13:20:34 -07:00
Graham Linden a43a762c0d NORSPEC-342 fix blocky hair in ALM from writing depth for transparent pixels in impostor rendering 2013-08-12 17:22:47 -07:00
Graham Linden 51dfcb9c67 NORSPEC-342 WIP MATBUG-347 make impostor rendering not contribute to depth for mostly-transparent buffer pixels, aka hair in ALM only 2013-08-12 15:55:25 -07:00
Richard Linden e340009fc5 second phase summer cleaning
replace llinfos, lldebugs, etc with new LL_INFOS(), LL_DEBUGS(), etc.
2013-08-09 17:11:19 -07:00
Graham Madarasz (Graham Linden) 79686b6974 NORSPEC-342 fix alpha objects appearing black in impostor images 2013-08-07 16:30:27 -07:00
Graham Linden bfe2377a9a NORSPEC-342 WIP fix issues with skimpy clothes getting too skimpy in impostors 2013-08-07 08:42:35 -07:00
Graham Linden 5b400d50e1 NORSPEC-322 NORSPEC-342 fix issues with black impostors and missing alpha attachments on impostors 2013-08-06 14:16:46 -07:00
Graham Madarasz (Graham Linden) fe69b4049b NORSPEC-304 NORSPEC-336 another attempt as resolving black glow overdraw without breaking glow (even for alpha-blended) faces 2013-08-05 10:16:17 -07:00
Graham Linden 9557926fff NORSPEC-332 fix fullbright tex indexing fail 2013-08-03 08:25:03 -07:00
Graham Linden 14c7108ca3 NORSPEC-304 NORSPEC-334 NORSPEC-336 fix black glow overdraw without breaking glow 2013-08-03 06:52:56 -07:00
Graham Linden 2d065562f1 NORSPEC-336 fix glow regression from 304 fix 2013-08-01 14:01:37 -07:00
Graham Madarasz (Graham Linden) 4a3c99beb2 NORSPEC-304 fix glow pass rendering over alpha pass after ALM toggle 2013-08-01 10:34:36 -07:00