Commit Graph

353 Commits (f4250bcfaff4e5047d3d585f7ecd2f7dec3956e9)

Author SHA1 Message Date
Ansariel f4250bcfaf Merge branch 'release/materials_featurette' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/CMakeLists.txt
#	indra/newview/llmanip.cpp
#	indra/newview/llmaniptranslate.cpp
#	indra/newview/llselectmgr.h
#	indra/newview/pipeline.h
2024-04-24 22:05:15 +02:00
RunitaiLinden 2880e5ceee
#1139 Fix for world going black/white in some scenes (NaNs) (#1273)
* #1139 Fix for world going black/white in some scenes (NaNs)

NaNs were coming from normal encode/decode.  Take advantage of available gbuffer space to send full normal instead of encoding.

* #1139 Cleanup

remove now unused encodeNormF.glsl

* #1139 Remove final reference to encodeNormF

* #1139 Fix for getNormalEnvIntensityFlags referencing wrong sampler for env intensity

* Mac build fix
2024-04-19 11:59:28 -05:00
Ansariel 2c64715842 Merge branch 'release/materials_featurette' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/cmake/Copy3rdPartyLibs.cmake
#	indra/llimage/llimagebmp.cpp
#	indra/llimage/llimagetga.cpp
#	indra/llrender/llrender.cpp
#	indra/llui/lltransutil.cpp
#	indra/newview/CMakeLists.txt
#	indra/newview/app_settings/settings.xml
#	indra/newview/llappviewer.cpp
#	indra/newview/llfilepicker.cpp
#	indra/newview/llfilepicker.h
#	indra/newview/llfloaterregioninfo.cpp
#	indra/newview/llviewerwindow.cpp
#	indra/newview/viewer_manifest.py
2024-03-08 20:35:53 +01:00
RunitaiLinden c1bde75768
HDRI Local Preview (#953)
* #926 WIP - HDRI import prototype v0

* #926 WIP -- add OpenEXR to autobuild.xml

* #926 WIP -- Add OpenEXR cmake

* #926 WIP -- Attempt at using OpenEXR autobuild package and don't hard code .exr file to load

* #926 Unmangle autobuild.xml and get dll's in the right place (thanks, Caladbolg!)

* implement mac shared libs plumbing for OpenEXR for secondlife/viewer#926

* Fix Xcode/clang compile error regarding new[]/delete[] mismatch

* #926 HDRI Preview finishing touches.

- Full ACES when HDRI is enabled
- Fix for probes getting stuck paused
- Add exposure and rotation controls

---------

Co-authored-by: Brad Linden <brad@lindenlab.com>
2024-03-08 12:01:20 -06:00
Ansariel 9f2be1de74 Merge branch 'release/materials_featurette' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/app_settings/settings.xml
#	indra/newview/lltexturectrl.cpp
#	indra/newview/llviewermenu.cpp
#	indra/newview/llviewerregion.cpp
#	indra/newview/skins/default/xui/en/floater_tools.xml
2024-02-12 12:54:03 +01:00
Jonathan "Geenz" Goodman 97d2b21621 #671 Setup the viewer to respect the MirrorsEnabled simulator feature. 2024-02-08 11:39:35 -08:00
RunitaiLinden 78cc23f89c Merge branch 'release/materials_featurette' into materials_featurette/mirrors 2024-02-07 11:20:06 -06:00
Ansariel c73b3b2a1b Merge branch 'release/materials_featurette' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/app_settings/settings.xml
#	indra/newview/llspatialpartition.cpp
#	indra/newview/llviewermenu.cpp
#	indra/newview/pipeline.cpp
#	indra/newview/skins/default/xui/en/menu_viewer.xml
2024-02-05 12:18:37 +01:00
RunitaiLinden 5abc68ad43 #677 Move PBR mirror radiance mixing to reflectionProbeF so transparent PBR surfaces can be mirrors 2024-02-02 15:43:56 -06:00
RunitaiLinden b2462355a3 #677 WIP -- add mirror clipping to more shaders 2024-02-01 13:19:20 -06:00
Cosmic Linden 00c65b6270 secondlife/viewer-issues#43: Fix debug normals not rendering for terrain 2024-01-31 14:31:06 -08:00
Ansariel 62ffcf193d Merge branch 'release/materials_featurette' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/app_settings/settings.xml
#	indra/newview/llpanelface.h
#	indra/newview/pipeline.cpp
#	indra/newview/skins/default/xui/en/floater_tools.xml
2024-01-26 13:17:18 +01:00
Jonathan "Geenz" Goodman 373b06398c Merge remote-tracking branch 'origin/release/materials_featurette' into DRTVWR-583 2024-01-24 14:37:33 -08:00
Ansariel 4d2549969c Merge branch 'DRTVWR-592' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/llimage/llimage.cpp
#	indra/llrender/llvertexbuffer.h
#	indra/newview/app_settings/settings.xml
#	indra/newview/lldrawpoolterrain.cpp
#	indra/newview/lldynamictexture.cpp
#	indra/newview/lltexturectrl.cpp
#	indra/newview/llviewercontrol.cpp
#	indra/newview/llviewertexture.cpp
#	indra/newview/pipeline.cpp
#	indra/newview/skins/default/xui/en/panel_region_terrain.xml
2024-01-23 16:03:33 +01:00
RunitaiLinden 6dd260c369
Merge branch 'release/materials_featurette' into DRTVWR-592 2024-01-19 11:36:56 -06:00
Ansariel a666e640c8 Merge branch 'DRTVWR-596' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/llwindow/llwindowwin32.cpp
#	indra/newview/llappviewerwin32.cpp
#	indra/newview/skins/default/xui/en/notifications.xml
2023-12-08 00:10:01 +01:00
Beq 95abeff523 Work in progress for shader updates (not working) 2023-11-25 14:43:09 +00:00
RunitaiLinden 964f9e74d5 SL-20611 followup -- remove now unused glsl files. Fix transparent water. 2023-11-17 10:10:58 -06:00
RunitaiLinden bdb53fd56d SL-20611 Make haze effect local lights -- move sky and water haze to their own passes and unify sky and water haze in forward rendering shaders. 2023-11-16 16:46:12 -06:00
Jonathan "Geenz" Goodman e841c73a99 Tons of masking changes and tweaks.
We now support masking mirrors in the GBuffer.

We also now support the concept of one arbitrary clip plane.

DRTVWR-583
2023-10-16 08:45:48 -07:00
Cosmic Linden a91f08ba84 Merge branch 'DRTVWR-559' into DRTVWR-592 2023-10-13 14:02:51 -07:00
Cosmic Linden 754fe9d4b7 DRTVWR-592: (WIP) Triplanar mapping 2023-10-13 10:39:09 -07:00
Cosmic Linden a7cd5f6ef9 DRTVWR-592: (WIP) (does not run) PBR terrain rendering - more work on shaders, uniforms 2023-10-13 09:57:48 -07:00
Cosmic Linden 7376b3e4b9 DRTVWR-592: (WIP) (does not run) PBR terrain rendering - begin work on shaders, uniforms 2023-10-13 09:57:40 -07:00
Jonathan "Geenz" Goodman 73870cb0b4 Merge branch 'DRTVWR-559' into DRTVWR-583 2023-09-25 09:27:49 -07:00
Ansariel 0514918bed Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/app_settings/settings.xml
#	scripts/messages/message_template.msg.sha1
2023-09-21 18:34:10 +02:00
Jonathan "Geenz" Goodman 348d427db6 Add a probe strength uniform for hero probes.
On standard reflection probes this doesn't really do anything.

DRTVWR-583
2023-08-29 05:08:47 -07:00
RunitaiLinden 894c9e0417 SL-19842 WIP -- Move sky auto adjustment magic numbers to debug settings. 2023-08-22 13:17:58 -05:00
Ansariel e85546fc3d Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer
# Conflicts:
#	doc/contributions.txt
#	indra/newview/app_settings/settings.xml
#	indra/newview/lldrawpoolalpha.cpp
#	indra/newview/llfilepicker.cpp
#	indra/newview/llpanelface.cpp
#	indra/newview/skins/default/xui/en/notifications.xml
2023-07-18 11:17:02 +02:00
Jonathan "Geenz" Goodman 040050af19 Merge branch 'DRTVWR-559' into DRTVWR-583 2023-07-17 15:06:23 -07:00
Cosmic Linden 6628320130 SL-19567: Add option RenderGlowNoise for low precision glow dithering, enabled by default 2023-07-12 15:44:15 -07:00
Jonathan "Geenz" Goodman d8dd4d9c0c Just about got hero reflection maps working.
DRTVWR-583
2023-06-27 20:01:52 -07:00
Ansariel 9ac97bed1a Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/llwindow/llopenglview-objc.mm
#	indra/newview/app_settings/settings.xml
#	indra/newview/lldrawpoolalpha.cpp
2023-06-19 11:39:41 +02:00
Jonathan "Geenz" Goodman ffac2df6ca Merge branch 'DRTVWR-559' into DRTVWR-583-glossy-ssr 2023-06-11 20:56:02 -07:00
Ansariel a466a2b136 Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/app_settings/settings.xml
#	indra/newview/llviewermedia.cpp
#	indra/newview/llviewertexture.h
#	indra/newview/skins/default/xui/en/floater_adjust_environment.xml
#	indra/newview/skins/default/xui/en/panel_settings_sky_atmos.xml
2023-06-02 11:50:25 +02:00
RunitaiLinden 50ec54831d
DRTVWR-559 Revert skies to be very close to release and disable tone mapping when probe ambiance is zero.
Hack for desaturating legacy materials has been removed for performance and quality reasons.

Adds a new setting for auto adjusting legacy skies.  This is the PBR "opt out" button.  If disabled, legacy skies will disable tonemapping, automatic probe ambiance, and HDR/exposure.  If enabled, legacy skies will behave as if probe ambiance and HDR scale are 1.0, and ambient will be cut in half.  

HDR scale will act as a sky brightener, but will automatically adjust dynamic exposure so the sky will be properly exposed.  If you want relatively even exposure all the time, set HDR Scale to 1.0.  If you want a high range of exposures between indoor/dark areas and outdoor/bright areas, increase HDR Scale.

Also tuned up SSAO (thanks Rye!).

Reviewed with Brad.
2023-06-01 19:49:23 -05:00
Jonathan "Geenz" Goodman 47e311d6e8 Addressing some performance related feedback with SSR getting drastically slower.
DRTVWR-559
DRTVWR-583
2023-05-26 16:56:33 -07:00
Ansariel 4e416c48c2 Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/app_settings/settings.xml
#	indra/newview/llmodelpreview.cpp
#	indra/newview/skins/default/xui/en/menu_object.xml
#	indra/newview/skins/default/xui/en/panel_preferences_graphics1.xml
#	indra/newview/skins/default/xui/en/panel_tools_texture.xml
2023-05-26 10:50:50 +02:00
Jonathan "Geenz" Goodman b273edd125 Merge branch 'DRTVWR-559' into DRTVWR-583 2023-05-22 10:42:18 -07:00
Ansariel 9d4eb9362e Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/app_settings/settings.xml
#	indra/newview/lldrawpoolalpha.cpp
#	indra/newview/llviewermenu.cpp
#	indra/newview/llviewershadermgr.cpp
#	indra/newview/pipeline.cpp
#	indra/newview/skins/default/xui/en/menu_viewer.xml
2023-05-19 11:27:04 +02:00
Rye Mutt 87bda55268
Add a binary cache for compiled shaders using glProgramBinary (#216)
* Add a binary cache for compiled shaders using glProgramBinary

* Add additional sanity checking to shader binary save and load, hook up cache clear and menu option

* Fix default init of shader cache data struct and clear gl errors before glGetError calls

---------

Co-authored-by: RunitaiLinden <davep@lindenlab.com>
2023-05-17 18:30:27 -05:00
RunitaiLinden 446d0cbf7f SL-19655 Clean up some missed "texture2D" vs "texture" (thanks Rye) 2023-05-17 18:28:01 -05:00
RunitaiLinden c827d32ebe SL-19655 Decruft legacy GLSL shaders and now unused build queues. 2023-05-17 18:09:36 -05:00
Ansariel 4d0ebf6143 Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/llpanelface.cpp
#	indra/newview/llperfstats.cpp
#	indra/newview/llperfstats.h
#	indra/newview/llviewerdisplay.cpp
2023-05-17 18:02:50 +02:00
RunitaiLinden cdc9852f05 SL-19709 Fix for fullbright shiny not factoring out exposure and flickering fullbright alpha. Incidental decruft. 2023-05-15 11:01:24 -05:00
Jonathan "Geenz" Goodman 339e02ef33 Finally get glossy SSR up.
DRTVWR-583
2023-05-11 21:19:58 -07:00
Ansariel 9ffb2514db Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/cmake/00-Common.cmake
#	indra/newview/app_settings/settings.xml
#	indra/newview/installers/windows/installer_template.nsi
#	indra/newview/llviewermenu.cpp
#	indra/newview/pipeline.cpp
#	indra/newview/skins/default/xui/en/menu_viewer.xml
2023-04-17 10:01:32 +02:00
RunitaiLinden 698966f8e7
SL-19538 Remove hacky ambiance scale and take the mittens off probe a… (#151)
* SL-19538 Remove hacky ambiance scale and take the mittens off probe ambiance values.  Fix for sky brightening being done in sRGB space.
2023-04-04 10:29:12 -07:00
Ansariel 95e73bf131 Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/app_settings/settings.xml
#	indra/newview/featuretable.txt
#	indra/newview/featuretable_mac.txt
#	indra/newview/llviewermedia.cpp
2023-03-31 17:03:50 +02:00
Dave Parks 10f66c0519 DRTVWR-559 Dynamically adjust exposure. 2023-03-28 14:30:59 -05:00