summaryrefslogtreecommitdiff
path: root/indra/newview/llviewershadermgr.cpp
AgeCommit message (Collapse)Author
2019-05-08Merge viewer-releaseGraham Linden
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-25Fix dark ALM and strangeness at Mid lighting (class 3 but with a darkness ↵Graham Linden
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-10SL-10901Graham Linden
Fix up shadow sampling and tweak shadow biasing. Clean up shader decls of unused funcs. Clean up whitespace diffs from release.
2019-04-10Merged in Geenz/viewer-eep/OPEN-340 (pull request #345)Rider Linden
OPEN-340 & OPEN-343 - Consolidate shader atmospheric calcs into a singular utility shader + fix fog on fullbright in deferred
2019-04-10SL-10925, SL-10926, SL-10896Graham Linden
New fix for 925/926 that doesn't cause 896 again. Also linearize moon disc tex color.
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
2019-04-05SL-10821Graham Linden
Fix directionality of da and preserve bumps on completely shadowed areas.
2019-04-03Add shader unloads for new deferred avatar/attachment alpha/mask shadow shaders.Graham Linden
2019-04-03Replace MAINT-8836 fix dropped in merge of 6.1.2Graham Linden
2019-04-03Replace dropped code from 6.1.2 for loading new avatar/attachment alpha/mask ↵Graham Linden
shadow shaders.
2019-04-02SL-10853Graham Linden
Fix windlight shader level selection.
2019-04-02Fix shader link fail from forward decl of wrong soft clip func in class 1.Graham Linden
Fix trying to bind diffuse maps for shader without uniform in shadow shaders. Clean up merge fail around mShaderLevel namechange.
2019-04-02Merge 6.1.2 LoveMeRender new hotnessGraham Linden
2019-04-02Merged in lindenlab/viewer-releaseAndreyL ProductEngine
2019-04-02Remove pragma for turning off optimization for debugging.Graham Linden
2019-04-02Roll back KDU to 7.a.4 version instead of updating to 7.a.7Graham Linden
2019-03-13Further tab restoration and whitespace delta minimization.Graham Linden
2019-03-13Mods to make merge with viewer-release have less whitespace-only change and ↵Graham Linden
fix diffs between EEP and VR.
2019-03-07SL-10618, SL-10698Graham Linden
Fix reflection/distortion map culling planes again. Fix broken handling of shadow disables in ALM forward shaders.
2019-03-03SL-10664, SL-10666Graham Linden
Fix up culling issues from perf work and fix Depth of Field rendering to get depth values properly. Baseline for performance work.
2019-03-02SL-10664Graham Linden
2019-02-28EEP performance WIPGraham Linden
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-27SL-10566 part the fourthGraham Linden
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-26SL-5186, SL-10612Graham Linden
Fix lighting and gamma correction differences between deferred and forward rendering including materials objects. Verify 10612 and 10500 remain fixed. Make sure all necessary deferred shaders get the atmospheric uniform updates for doing frag-based atmospherics.
2019-02-22SL-9994Graham Linden
Fix linkage of underwater terrain shader to include atmo helper GLSL for getEyePosition().
2019-02-21SL-10501Graham Linden
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-13SL-10181, SL-10546Graham Linden
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-01-319996 partial fix (works for non-ALM rendering only)Graham Linden
Use a new edge water shader to allow forcing frag depth to avoid z-fighting at back edge of water edge pieces. This will not work for ALM because forcing the depth breaks the use of the depth to backproject gbuffer position which breaks lighting calcs.
2019-01-30Make shadow map gen shaders not link against shadowUtil module so Intel HD ↵Graham Linden
x000 compiler can get under it's Yugo-like allotment of texture units.
2019-01-30Reduce shadow shader linkage of deferredUtil module to try to get Intel HD ↵Graham Linden
x000 compiler to link again.
2019-01-30WIP for 10374 (reduce number of shaders linking against deferredUtil).Graham Linden
Prepare for using ifdef to conditionally engage using gl_FragDepth in water shaders (because GL requires that writing to gl_FragDepth on any path means you need to write a depth value on every path).
2019-01-30SL-10415, SL-10434Graham Linden
Further tweaking of directional shadow sampling to balance between peter-panning and shadow acne. Move stars to just this side of the sky some to reduce parallax. Remove decodeNormF and uses of decode_normal in favor of unified use of getNorm (try to help the Intel HD x000 compiler learn to link correctly).
2019-01-24SL-10282Graham Linden
Use clamping on dot product to determine halo TCs to fix abrupt cutoff at dot == 0. Ifdef around engaging advanced atmo which is not ready for primetime yet.
2019-01-17SL-10368Graham Linden
Fix OSX shader compile bug from use of #if FOO instead of #ifdef FOO or #if defined(FOO) preventing atmospherics (and thus ALM) from working on OSX.
2019-01-08Fix broken distortion map rendering (was culling everything).Graham Linden
Clean up deferred\alpha shader to allow re-entrant graphics switching (link error on 2nd compile/link of deferred shaders). Clean up some uses of pragma(optimize,...).
2019-01-04Add new shaders for generating shadows from clouds.Graham Linden
Add new class3 shadow shaders for VSM shadows. Add disabled shadow pass in WLSky for using above.
2018-12-19Add new shaders for advanced atmo SH env lighting calcs.Graham Linden
2018-12-06De-duplicate deferred gbuffer access for getPosition/getNorm.Graham Linden
De-duplicate ambient occlusion shader code and move to new aoUtil.glsl Split shared shadow tap funcs into shadowUtil.glsl
2018-11-26SL-10101 Remade most frequent setting calls to cached variantsandreykproductengine
2018-11-15Remove compilation and linkage of deferredUtil and indirect GLSL helper ↵Graham Linden
objects (current source of Intel ig4icd driver crash).
2018-11-12SL-10044 SL-10045Graham Linden
Fix class 1 and 2 transport/gamma funcs and made usage consistent across all shaders. Fix class1\environment\waterV reverting to old d1/d2 names for wave directions.
2018-11-09More incremental revive of 39561 contents to determine cuplrit.Graham Linden
2018-11-09Back out changes causing broken shadows and other render shenanigans.Graham Linden
2018-11-06Move to using a shared deferredUtil object for getting pos/norm from gbuffer.Graham Linden
Eliminate 20+ callsites with copy-paste of getPosition and/or getNorm code. Make pipeline use getShadowTarget/releaseShadowTarget consistently.
2018-11-01SL-9994Graham Linden
Make shaders use consistent naming and parameter order for transport and atmospheric helpers. Share transport and gamma correction code where possible. Add lots of asserts and other validation for when things don't go as planned. Engage dumpShaderSource to get more source output with shader compilation fail.
2018-10-29SL-9977Graham Linden
SL-9973
2018-10-16SL-9895 select correct sky shader for ALM despite shadow detail being set to ↵Graham Linden
none
2018-10-05SL-1925Graham Linden
More settings for rainbow/halo atmospheric effects, final default asset UUIDs, and shader mods.