SamuelCho
60bee02f92
Reorder lightshafts in the post process pipeline. Fixes the glare effect from being too bright.
2016-08-14 19:09:29 -07:00
asarium
16be3b7cc5
Add support for TrueType fonts
...
This allows to use standard TrueType Fonts for text rendering in FSO. It uses the NanoVG library which provides the ability of drawing 2D shapes. This library is used for most 2D operations now and can also be used directly by using the PathRenderer class.
2016-08-02 10:57:28 +02:00
Fabian Woltermann
e3d4cc1bc7
_actually_ move the fxaa pass
2016-08-01 11:54:00 +02:00
Fabian Woltermann
6a76b99083
Merge pull request #713 from SamuelCho/fxaa_fix
...
Make sure we can write to the alpha channel before doing the FXAA luminance prepass
2016-08-01 11:43:55 +02:00
SamuelCho
c049c64c00
Make sure we can write to the alpha channel before doing the FXAA luminance prepass.
2016-07-31 21:04:04 -07:00
asarium
1bcd5400d3
Move build system to CMake
2016-07-22 12:07:19 +02:00
SamuelCho
dd73d8fb63
New lighting model based off of Blinn-Phong and Fresnel-Shlick. Introduced -reflect maps. New gloss parameters for specular power. High dynamic range rendering. Improved bloom pass.
2016-07-05 23:15:08 -07:00
Peter Mitsis
180674154c
trig: Use floating point versions of trig functions
...
Replaces calls to double-precision floating point trig functions with
calls to single-precision floating point trig functions as follows:
cos() -> cosf()
sin() -> sinf()
tan() -> tanf()
acos() -> acosf()
asin() -> asinf()
atan() -> atanf()
This allows the compiler to avoid generating unnecessary instructions
that convert a float to a double and then a double back to a float.
Signed-off-by: Peter Mitsis <[email protected] >
2016-04-24 21:56:06 -04:00
asarium
6184ae6db6
Clean up shader loading code a bit
2016-03-22 17:38:42 +01:00
Echelon9
9bd4fb3ac7
Lift up FXAA shader GLSL version check to opengl_post_load_shader(), out of the GLSL shader compiler preprocessor stage.
2016-01-03 16:33:05 -05:00
Echelon9
5d593f0df0
Plumb through is_minimum_GLSL_version()
2016-01-03 16:33:04 -05:00
Goober5000
bd3cd7eb18
Merge pull request #195 from Echelon9/fix/sort-uniq-includes
...
Review and refactor #include's
2015-08-19 00:05:02 -04:00
Echelon9
4bf5f15f72
Fix: graphics/gropenglpostprocessing.cpp:682:79: warning: declaration of ‘shader’ shadows a global declaration [-Wshadow]
2015-07-06 22:49:38 +10:00
Echelon9
3860951b6c
Fix: graphics/*.cpp warning: declaration of ‘light’ shadows a global declaration [-Wshadow]
2015-07-06 22:36:10 +10:00
Echelon9
c5493bb480
Scripted sort and uniq on (internal) project includes. Improves search time and as a by product removed a number of duplicative includes.
2015-06-22 20:24:30 +10:00
SamuelCho
520b89408e
Fixed warnings related to graphics code additions.
2015-05-08 21:21:20 -07:00
Swifty
c620372357
Soft shadows, deferred lighting, and various major graphics optimizations.
2015-05-02 14:35:37 -07:00
asarium
9aed627ce7
Replace longjmp with exceptions
...
Also added a EditorConfig file
2015-04-24 15:03:59 +02:00
MageKing17
83414b238d
Remove required_string_3() and required_string_4().
...
Replaced with usage of required_string_one_of(). (required_string_either() not removed due to different behavior.)
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11321 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-23 12:09:06 +10:00
zookeeper
4e0beccfc9
Reverted r10944 and r10945 for now, with the exception of the GL_TRIANGLE_STRIP->GL_QUADS fix.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11105 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-07 12:21:56 +10:00
zookeeper
a23438f590
Fixed inverted normals in RTT if post-processing is on.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10945 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-27 13:03:04 +10:00
The_E
521e31d766
...aaand cleanup
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10027 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-10 18:28:58 +10:00
The_E
ec56e7771a
Ooops, small buffer collision. Need to load the depth buffer to texture unit 2.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10026 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-10 18:28:58 +10:00
The_E
551a539fe8
Adds depth buffer access to post processing shaders (via use of the depth_tex uniform)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10025 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-10 18:28:58 +10:00
The_E
b991499620
From Plombo: Make the FXAA shaders conform to the (absolutely braindead, I might add) GLSL specs. Also makes Mesa happy.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9665 387891d4-d844-0410-90c0-e4c51a9137d3
2013-06-11 19:22:15 +10:00
Zacam
755d7326b3
From Valathil, glCleanup to reduce the amount of calls.
...
First post here: http://www.hard-light.net/forums/index.php?topic=82886.0
Mantis Here: http://scp.indiegames.us/mantis/view.php?id=2728
2012-11-18 10:05:44 +00:00
The_E
9a54bd0cc4
New game_settings.tbl setting: "$Enable External Shaders:", which allows the use of, you may have guessed it, external shaders. Default is off.
2012-08-03 20:31:57 +00:00
The_E
cc2b907673
Changes the glBegin()/glEnd() stuff we were using in some places to the more modern glDrawArrays() way of doing things. Thanks to Kromaatikse for the initial implementation.
2012-07-02 15:48:56 +00:00
Goober5000
7ef1c9f99a
MSVC6 compatibility
2012-06-17 05:43:28 +00:00
Echelon9
e5ef4467da
GCC warning: missing initialiser for member ‘opengl_shader_file_t::attributes’
2012-06-13 14:26:30 +00:00
Echelon9
4d31532aad
GCC warning: passing NULL to non-pointer argument, in gropenglpostprocessing.cpp
2012-05-27 14:13:25 +00:00
Echelon9
28c20e0468
GCC warning: converting to non-pointer type 'int' from NULL
2012-05-27 13:53:04 +00:00
Echelon9
c4c33bea34
Fix Mantis 2642: Cockpits are rendered incorrectly when post-processing is disabled, thanks m_m
2012-04-22 13:34:37 +00:00
The_E
95f56d3af7
New shader initialization code. This removes the big, ugly GL_Shader_file[] array, and changes shader compilation behaviour to only compile shaders on demand, not on program startup
2012-04-02 10:20:31 +00:00
Valathil
42a0fd0626
Fix cockpit simulated brightness for lightshafts: Recalculate even if falloff is 1.0 and use the actual sample number
2012-01-17 17:13:01 +00:00
The_E
b9f9b49e4f
Make sure the FXAA pass only draws to COLOR_ATTACHMENT0
2012-01-11 17:41:52 +00:00
The_E
ecb11b095c
We were disabling the framebuffer a bit too soon here.
2012-01-06 01:03:37 +00:00
The_E
41d68f3aca
From m|m: Fix for Mantis 2400 (RTT rendering broken in current builds). Also changes GL_rendering_to_framebuffer to the more aptly named GL_rendering_to_texture.
2011-12-23 13:09:39 +00:00
Echelon9
e98f25198c
Adjust alignment when shader debug logs are written.
2011-12-23 00:15:46 +00:00
The_E
09b8d1e3d1
Adds an intermediate render target for FXAA to work against, this removes a previous reliance on undocumented behaviour in OpenGL.
2011-12-22 15:12:18 +00:00
Valathil
7ffe518adb
Allow for FS1 shader effect to be customized in post_process.tbl
2011-12-22 14:40:30 +00:00
Valathil
a0d1c8445a
Added Lightshafts as a replacement for sun glare. Look at http://www.hard-light.net/forums/index.php?topic=78923.80 for post_processing.tbl format
2011-12-08 20:57:11 +00:00
Echelon9
9f711bf53e
Documentation: General code cleanup for 64bit
2011-11-05 08:12:04 +00:00
Echelon9
6d4f266e52
Use SCP_* types to access STL types wherever possible. This allows more complete memory monitoring
2011-10-03 09:06:56 +00:00
The_E
b1fc8971de
Little change to fix bug with external post shaders not loading
2011-09-17 19:36:24 +00:00
Echelon9
9bd9ea619d
PVS-Studio fix: V519 The 'list_size' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 597, 604 (gropenglpostprocessing.cpp)
2011-08-28 09:31:21 +00:00
The_E
94bb513f0f
Another FXAA change to stop it from murdering our pretty pretty starfields.
2011-08-23 19:07:58 +00:00
Swifty
fe605149c4
Soft sphere sprite rendering for particles, explosions, shockwaves, and thrusters.
2011-08-20 22:14:52 +00:00
The_E
d5c065bf74
When loading FXAA shaders, always use the built-in defaults.
2011-08-14 15:08:28 +00:00
The_E
4c919f0a59
Fixes issue with post_processing.tbl parsing
2011-07-30 22:45:53 +00:00