Goober5000
fde3589d1d
handle debris model instances correctly when shadows are enabled
...
Fixes #4813 .
2022-10-23 14:13:08 -04:00
BMagnu
2080824a20
Can has high rez plz k thx bye ( #4805 )
2022-10-22 18:47:58 +09:00
Goober5000
f1f234b89d
Merge pull request #4702 from EatThePath/debug-log-cleanup
...
Moved more things to debug filters, and associated cleanup
2022-10-06 16:57:27 -04:00
BMagnu
979d305afe
Add screenToBlob scripting function ( #4738 )
...
* extract base64 routines
* Add screenToBlob scripting method
* Fix variable shadow
* Fix variable shadow again
* Fix usused variable
2022-10-03 07:33:46 +09:00
EatThePath
f641f0283e
Merge branch 'master' into debug-log-cleanup
2022-09-27 10:34:12 -05:00
David Gibson
b76294e528
Returned some more serious lines to the general categories.
2022-09-27 10:32:18 -05:00
David Gibson
e86bbb0138
cleanup to the cleanup of filters
...
Moved more things to debug filters, and associated cleanup
2022-09-27 10:25:50 -05:00
BMagnu
19a7814e50
Merge Show Ship and Cockpit Renderpasses ( #4705 )
...
* Setup merge of ship model and cockpit
* Merge extmodel and cockpit rendering
* Fix hasCockpitModel check
* Fix non-coord-share mode and deferred
* Make extmodel shadowcast toggleable
* Fix extmodel shadows
* Make cockpit pass somewhat configurable
* tidyup
2022-09-24 22:10:55 +09:00
Adam Leach
fed039fd54
logic error fix - update envMatrix even if there's no specmap ( #4699 )
2022-09-22 22:00:19 -04:00
Goober5000
7fea61f618
Merge pull request #4669 from TRBlount/feature/movie_alpha
...
Allow movies to be alpha blended through the LUA Movie Player API
2022-09-19 18:50:20 -04:00
Tyler Blount
0d78538a91
Update video shader and add alpha controls to VideoPresenter API
2022-09-17 15:53:04 -07:00
BMagnu
5593bd168d
Add optional deferred lighting pass for cockpits ( #3445 )
...
* Add deferred cockpit lighting
* Put deferred Cockpits behind a flag
* (hopefully) fix bad in-case initializer
* clear non base color buffer in subsequent deferred passes
* Proper deferred Cockpit rendering
* undo whitespace changes
2022-09-17 15:29:35 -04:00
David Gibson
413e817733
Attached reasonabled defaults to the new source radius settings
2022-09-15 17:04:25 +01:00
David Gibson
e37427a24b
Adding configurable source radius to the lighting data and uniforms
2022-09-15 17:04:25 +01:00
Adam Leach
36a714b93f
Merge branch 'master' into qaz-shaders
2022-09-14 16:56:57 +01:00
wookieejedi
f82bf2276b
Allows default shadow quality to be per mod ( #4553 )
2022-08-20 07:16:29 -04:00
BMagnu
967619ab09
Add options to selectively disable shadows ( #4536 )
...
* Add options to selectively disable shadows
* Encapsulate logic
* Add comment for new functions
2022-08-18 05:42:43 +09:00
wookieejedi
31dc7c2269
Fix misspelled ID name for in-game options ( #4541 )
...
Thanks to MjnMixael for catching this.
2022-08-15 17:03:52 +00:00
Goober5000
826dfd01fc
clean up Lua frame handling a bit
...
There's no need to keep all this infrastructure to run every frame for a barely used situation. This cleans it up a bit and does the position reset in the actual drawString function.
2022-07-08 18:59:10 -04:00
Adam Leach
5e4d6cc5de
Implement IBL based off envmaps
...
Fixed environment map rendering
shift fresnel term to match ordering of ComputeGGX, document shader code.
Envmaps: Use tangentMatrix to build local coordinate system
Fixed geometry self-shading calcs to improve shading of rough surfaces.
Cite paper correctly
optimsed env sampling
Put envmap face generation a loop to make it easier to read
Precalculate points on circle for even faster envmap sampling..
Guard against NaNs
Revert to simpler envmap calcs, significantly faster on slower GPUs.
typo
We don't need the sample points any more.
Diffuse IBL shading
Fix gamma issues in envmap rendering
AO term on envmaps.
fix lab crash with retail data
Always render envmaps - PBR shouldn't care if a shine/specmap exists.
2022-06-18 19:57:54 +01:00
Goober5000
7013981de5
add isActive checks for new-style script hooks
...
What it says on the tin. Follow-up to #3538 . Fixes #4398 .
2022-06-13 02:13:14 -04:00
David Gibson
e78157908d
fixed some mishandling of lighting modifiers.
2022-06-12 18:51:08 -05:00
Fabian Woltermann
7facbcc262
Merge pull request #3769 from EatThePath/debug-viz-sphere
...
Implemented debug sphere queuing and rendering.
2022-06-05 18:24:52 +02:00
Kiloku
01a4d01fd3
Draw 3d lines in space with Lua ( #4331 )
...
* Add support for drawing batched 3D lines of arbitrary color and thickness.
* Add draw3dLine lua function.
* Move line texture out of graphics.h into graphics.cpp, also rename it for proper code style.
* Move line texture generation to batching.cpp, create dedicated batching_add_line function and add support for a line with variable thickness at the start and end.
* Use references in the verts loop
* Add bound checks for line widths
* Warn if the Lua script uses invalid widths
2022-06-04 09:10:15 -05:00
Tyler Blount
e38c30bca6
Merge pull request #4346 from Kiloku/fix_line_endings
...
Fix line endings in the core codebase
2022-06-03 19:11:41 -07:00
David Gibson
13180db544
Merge remote-tracking branch 'origin/master' into light-flags-rubicon-2
2022-06-03 15:50:26 -05:00
David Gibson
a7b59b4620
further post-rebase repair of light flags command line and leftover specular
2022-06-03 15:39:08 -05:00
EatThePath
13db223f03
Merge branch 'master' into debug-viz-sphere
2022-06-03 14:51:16 -05:00
David Gibson
cfa7d1736b
Removed specular light color as a separate value in the uniform buffers.
2022-06-03 13:27:06 -05:00
David Gibson
89e17ec2f1
cleanup unused new function
2022-06-03 13:26:05 -05:00
David Gibson
6ee2699f51
Switched over to new command line arguments
2022-06-03 13:26:05 -05:00
David Gibson
23a46dcb65
Applying directional brightness profile value, disconnected spec flags and made specular light always equal to diffuse light
2022-06-03 13:22:54 -05:00
Tyler Blount
92c1ca2bb7
Merge pull request #4317 from notimaginative/stub_graphics_fixes
...
fix a bunch of graphics functions to respect GR_STUB
2022-06-03 11:18:43 -07:00
EatThePath
91b516c1c4
Merge pull request #4208 from EatThePath/weapon_lights
...
Weapon lights
2022-06-03 13:01:15 -05:00
kiloku
b7e99089d7
Fix line endings in the core codebase
2022-06-03 13:31:09 -03:00
David Gibson
52fd857736
Simplified internal references to debug_sphere members
2022-05-30 14:50:09 -05:00
David Gibson
859d44f3a3
Rendering changes to stablize debug_sphere coloration
2022-05-28 16:37:47 -05:00
David Gibson
45b6362777
Applied automatic formatting to the new debug_sphere files
...
Restructured debug sphere code for efficiency
2022-05-28 16:10:48 -05:00
David Gibson
c6c5d37f48
Converted debug sphere to class
2022-05-28 15:48:28 -05:00
David Gibson
753856421d
dead code cleanup
2022-05-28 15:48:28 -05:00
David Gibson
90eb343aa9
Implemented debug sphere queuing and rendering.
2022-05-28 15:48:28 -05:00
Taylor Richards
f6f16b6a32
clang-tidy fixes
2022-05-27 17:47:38 -04:00
Taylor Richards
39434fe7b1
fix a bunch of graphics functions to respect GR_STUB
2022-05-27 12:49:49 -04:00
Adam Leach
1d16bb28a4
Keep clang tidy happy (NULL->nullptr)
2022-05-17 11:11:47 +01:00
Adam Leach
862cf0d82c
Keep clang -Werror=unused-but-set-variable happy.
2022-05-17 09:05:20 +01:00
Adam Leach
98846a3f88
Clean up comments
2022-05-16 19:51:23 +01:00
Adam Leach
22b1f08592
Cleanup render target and don't produce cubemap images
2022-05-16 19:05:43 +01:00
Adam Leach
530118785a
spherical environment map generation
2022-05-16 19:05:43 +01:00
Adam Leach
d84486c357
remove superfluous filepath format
2022-05-16 19:05:43 +01:00
Adam Leach
2744af109a
Dump Environment maps with "M" key in lab
2022-05-16 19:05:43 +01:00