summaryrefslogtreecommitdiff
path: root/indra/llrender
AgeCommit message (Collapse)Author
2019-05-09SL-11056Graham Linden
Make OpenGL 3.3 cards not false alarm on version 140 shader reqs. Makes deferred rendering work on low-end GPUs more often.
2019-05-07SL-11055, SL-10966, SL-11087Graham Linden
Make haze look more like WL. Make lack of sun and moon mean black and fixed dir to prevent spooky underlighting.
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-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-02Fix missing EOL on last line.Graham Linden
2019-04-02Merge 6.1.2 LoveMeRender new hotnessGraham Linden
2019-04-01Whoops! Always make sure that our primary format is assigned.Geenz
2019-04-01Make LLImageGL's loading of assets as sRGB or linear conditional based upon ↵Geenz
sRGB decode support.
2019-03-30Hide sRGB decode behind a flag, and make sure that sRGB decodes is strictly ↵Geenz
opt-in.
2019-03-30Additional gamma correction work: start moving over to EXT_texture_sRGB_decode.Geenz
2019-03-29OSX is very picky about unused variables.Rider Linden
2019-03-29Tweaked naming a bit, also white space.Geenz
Will wait for a response from @graham_linden regarding moving the sRGB conversion functions in llmath.h to llrender.
2019-03-29Gamma correction pass 2:Geenz
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-29Fixing gamma correction in EEP Step 1:Geenz
Thou shall always read the sky cubemap as sRGB using hardware sampling.
2019-03-26Make whether the sun or moon is primary part of llrender light state so we ↵Graham Linden
can set uniforms for shaders along with other light params. Fix atten calcs to not use abs val.
2019-03-01Merged in lindenlab/viewer-releaseAndreyL ProductEngine
2019-01-14- add static construslantproductengine
2019-03-15SL-10743, SL-10744Graham Linden
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-13Mods to make merge with viewer-release have less whitespace-only change and ↵Graham Linden
fix diffs between EEP and VR.
2019-03-12More tab restoration.Graham Linden
Also fix ref to removed extra GLSL link module. 'warn-on-failure:no-tabs'
2019-03-12Tab restoration project.Graham Linden
'warn-on-failure:no-tabs'
2019-03-07Fix tabs.Graham Linden
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-06Remove refs to libatmo libraries (not pulled into cmake anymore).Graham Linden
2019-03-04SL-10566Graham Linden
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-02SL-10664Graham Linden
2019-02-28MergeRider Linden
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-02-08Replace funcs dropped in merge.Graham Linden
2019-02-08Merge SL-10501 fixGraham Linden
2019-02-07SL-10486, SL-10501, SL-10487Graham Linden
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-06SL-10478Graham Linden
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-04SL-10461Graham Linden
Pass projector ambiance as the .w element of the light_attenuation uniform so that alpha shader can emulate the behavior of proper spot projectors.
2019-02-01SL-9996, SL-1130, SL-5546Graham Linden
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-01Remove one more piece of attempted 9996 fix on ALM.Graham Linden
2019-02-01Roll back attempted fix for 9996 on ALM which has unacceptable knock-on effects.Graham Linden
2019-02-01Fix issue with OSX shader compiler not implementing #if correctly (nice job, ↵Graham Linden
Timmy).
2019-01-30Eliminate helper GLSL modules depending on further GLSL modules to give ↵Graham Linden
Intel HD x000 compiler a fighting chance. More WIP for edge-specific water shader for 9996.
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-10276Graham Linden
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.
2018-12-17SL-10252: On Windows, use $SystemRoot again, not FOLDERID_Fonts.Nat Goodspeed
2018-12-15SL-10153: auto name{expression} declares an initializer_listNat Goodspeed
instead of a variable of type decltype(expression). Using SHGetKnownFolderPath(FOLDERID_Fonts) in LLFontGL::getFontPathSystem() requires new Windows #include files. A variable with a constructor can't be declared within the braces of a switch statement, even outside any of its case clauses.
2018-12-14SL-10153: Review and rationalize fetching paths from environment.Nat Goodspeed
Use LLStringUtil::getenv() or getoptenv() whenever we fetch a string that will be used as a pathname. Use LLFile::tmpdir() instead of getenv("TEMP"). As an added extra-special bonus, finally clean up $TMP/llcontrol-test-zzzzzz directories that have been accumulating every time we run a local build!
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-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-09Add missing new shader files.Graham Linden