Commit Graph

274 Commits (64a78b8c7f82641ce58761432d04458f0ebea721)

Author SHA1 Message Date
Andrey Kleshchev 553e4e5582 SL-12014 fixed wrong pool type check 2020-05-14 11:28:16 +03:00
Andrey Lihatskiy 7a311fe30e Merge branch 'master' into DRTVWR-497 2020-04-20 21:21:12 +03:00
andreykproductengine 3b7a89322e SL-1130 Reverted part of d9dc1e2 2019-11-29 18:21:21 +02:00
andreykproductengine 4f5d785226 SL-12014 Animesh is now a separate rendering type 2019-10-25 17:32:19 +03:00
AndreyL ProductEngine 6f4692bac2 SL-1130 Fixed crash in LLRender::loadMatrix() 2019-10-22 17:56:12 +03:00
Graham Linden 71af0a2a9e Fix shutdown crash in teardown of joint heirarchy.
Ifdef'd code for potential skinning speed up to avoid lots of int<->float conversions (expensive and static for min space investment)
as updating rigged VBs shows up as a profiling bottleneck for Low rendering (where we actually use CPU skinning).
2019-08-06 14:41:55 -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 e4bac71ac3 Fix shader link fail from forward decl of wrong soft clip func in class 1.
Fix trying to bind diffuse maps for shader without uniform in shadow shaders.

Clean up merge fail around mShaderLevel namechange.
2019-04-02 14:14:19 -07:00
Graham Linden d78ed764b5 Merge 6.1.2 LoveMeRender new hotness 2019-04-02 12:27:34 -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 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 788a108384 SL-10501
Fix broken matrix management code causing modelview mats to be used as tex anim mats
(do not depend on default matrix mode already being set).

Give the deferred terrain shader a name.

Make LLRender use the eMatrixMode enum instead of ints.
2019-02-21 16:03:46 -08:00
Graham Linden c909e496fd SL-10501
Remove assert and replace with warning when rigged mesh tries to use tex anim on tex index > 1.
2019-02-08 12:43:27 -08:00
Graham Linden 90f9078d1f SL-10486, SL-10501, SL-10487
Make moon texture from default daycycle the default moon texture id and use it for the default and blank assets in the picker.

Fix handling of MM_TEXTURE to correctly detect when texture units outside the range 0-3
are used with texture matrix ops to prevent mem overwrite bug and/or asserts.
2019-02-07 16:00:21 -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 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
AndreyL ProductEngine c21396181b Merged in lindenlab/viewer-release 2018-11-14 22:47:31 +02:00
Rider Linden 1d022e86c8 Merge 2018-11-14 11:19:33 -08:00
Brad Payne (Vir Linden) aacb7eb25f SL-9773 - treat animated object attachments the same as other rigged attachments for purposes of visibility in mouselook. 2018-10-01 16:11:09 +01:00
Graham Linden 00fe3e06e2 SL-6613 more fine-tuning of the logic around rigged alpha shadows to avoid issues when a diffuse texture with alpha is used with non-blended material diffuse alpha modes 2018-09-24 16:57:31 +01:00
Graham Linden 53abfe53bd SL-1835
Make attachmentAlphaMaskShadow frag shader ignore vert alpha which can be incorrect.

Make discard test in attachmentAlphaMaskShadow match other shadow shaders more closely.

Fix highlightF shader compile error.
2018-09-18 17:53:35 +01: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
Graham Linden 50f6504d75 MAINT-9046 honor alpha mode none even when texture has alpha channel when checking state in avatar attachment shadow passes 2018-08-25 00:26:26 +01:00
Graham Linden b066310231 MAINT-9024 MAINT-9025 fix shadow render of materials objects to use alpha and don't draw MATERIAL_ALPHA content twice in shadow pass 2018-08-21 18:24:08 +01:00
Graham Linden 3237923e10 MAINT-3699 new shaders supporting alpha blend/mask rigged content.
Make shader loading debug logging of uniforms use ShaderUniform to make supression simpler.
2018-08-16 00:31:39 +01:00
Brad Payne (Vir Linden) 2a2046fd07 merge 2018-06-05 22:44:04 +01:00
Brad Payne (Vir Linden) ef264fd82e SL-838 - more checking of pool state when adding or removing rigged meshes 2017-12-08 15:42:29 +00:00
Brad Payne (Vir Linden) 5cbe057880 SL-838 - prevent deletion of LLDrawPoolAvatar while it still has rigged faces 2017-12-08 15:20:28 +00:00
Brad Payne (Vir Linden) 4b439ff968 SL-704 - made avatar hierarchy more consistent by adding lluiavatar for viewer-local avs used in upload previews 2017-12-04 11:15:47 +00:00
Brad Payne (Vir Linden) 5c7f27562d merge 2017-11-29 23:40:12 +00:00
Brad Payne (Vir Linden) 2f1b75f03e SL-704 - first pass cleaning up comments. Also added LLControlAvatar::initInstance() as a potential hook for optimizations. 2017-11-16 19:24:53 +00:00
andreykproductengine 02e418a5cd MAINT-7228 Dummy triangle should use map instead of offset (in case of VBO) 2017-11-14 19:50:17 +02:00
andreykproductengine 6502e8bf33 MAINT-7228 Vertex buffer allocation failure handling 2017-11-14 18:55:36 +02:00
ruslantproductengine 51c5f6319c MAINT-6645 - Improvement - Agents that render as jelly dolls should have their attachments render at 0 LoD to prevent loading higher LoD complexity in memory thus deterring crashes.
Stability improve.
2017-12-04 19:16:19 +02:00
andreykproductengine 149b2d88dd MAINT-7228 Vertex buffer allocation failure handling 2017-11-01 19:36:13 +02:00
Brad Payne (Vir Linden) c025939e42 MAINT-7857 - shadow fix for animated objects. 2017-10-27 15:10:26 +01:00
Brad Payne (Vir Linden) 96bc66a557 SL-779 - refactoring related to rigged-mesh determination. animated objects must contain some triangles even if not at the root 2017-10-25 20:16:39 +01:00
Brad Payne (Vir Linden) c5dc0ee36e SL-704 - code cleanup 2017-06-09 21:13:54 +01:00
Brad Payne (Vir Linden) c9baf4c661 SL-691,SL-694 - viewer can animate objects based on server messaging. First end-to-end demo for animated objects. 2017-06-07 14:23:49 +01:00
AndreyL ProductEngine f53e142e7d MAINT-7128 Crash in LLDrawable::cleanupReferences - more informative logging 2017-03-30 00:22:36 +03:00
Brad Payne (Vir Linden) 93db7eacbd SL-540 - fix for regression in handling of out-of-range joint indices in skin weights 2016-11-30 14:03:54 -05:00
Brad Payne (Vir Linden) 5fb30e5ad3 MAINT-6913 - (Via Sovereign Engineer and Shyotl Kuhr) Pack the skinned matrix and translation into a single mat3x4 for optimal data transfer to reduce uniform slot usage. 2016-11-11 09:37:45 -05:00
Brad Payne (Vir Linden) 8230a9937f MAINT-6841 - removed the joint remapping code, since it was designed to support a feature we no longer have. This also incidentally fixes any bugs caused by the joint remapping code. 2016-10-18 16:05:35 -04:00
Brad Payne (Vir Linden) 278825191b TEST - non-SSE code path for matrix ops used in mesh skinning. 2016-08-23 15:08:14 -04:00
Brad Payne (Vir Linden) f47ceb47bb merged jelly-doll viewer-release into bento 2016-05-21 08:15:28 -04:00
Oz Linden 950c41d184 merge 4.0.4-release and MAINT-5974 2016-05-06 10:28:42 -04:00
ruslantproductengine 7f077a5e3a MAINT-6326 [QuickGraphics-RC] Blingposter avatars are all full bright white when basic shaders are disabled. 2016-04-21 22:09:40 +03:00
ruslantproductengine 503dc6ee65 MAINT-6317 [QuickGraphics-RC] Some rigged mesh attachments render fully on jellybaby avatars when ALM is enabled
FIXED
- remove global identifier for the black texture
- add black texture 2x2x3 localy on apllication startup
- add special flag to LLViewerFetchedTexture for protect from removing
2016-04-21 12:47:49 +03:00
Oz Linden ded162be60 fix merge error for specular rendering on impostors 2016-03-22 16:30:59 -04:00