Christoph Oelckers
4ee0cc7841
- use std::sort to sort the draw lists to avoid having to go through global variables.
2018-08-22 01:53:55 +02:00
Christoph Oelckers
cad63e9b48
- removed access to deleted variable.
2018-08-22 01:49:53 +02:00
Christoph Oelckers
26a782031c
- no, we do not want to use global variables to pass parameters around...
...
# Conflicts:
# src/gl/models/gl_models.h
2018-08-22 01:49:33 +02:00
Christoph Oelckers
ec1c71feb1
- removed empty header gl_convert.h
...
# Conflicts:
# src/gl/scene/gl_flats.cpp
# src/gl/scene/gl_scene.cpp
2018-08-22 01:21:20 +02:00
Christoph Oelckers
542da7425c
Fixed: DBaseStatusBar::Draw did not use its ticFrac parameter when being called from scripts
...
Instead it directly went to the global viewpoint again which would be inconsistent.
2018-08-22 01:01:47 +02:00
Christoph Oelckers
54e6922f28
Don't let DEarthquake depend on r_viewpoint.
...
The ticFrac value should be passed as a parameter, especially since this gets called from code that sets up r_viewpoint.
2018-08-22 00:51:59 +02:00
drfrag666
d79855d26b
- disable any texture clamping for textures with a user shader.
...
This cannot be reliably determined so the least restrictive setting must be used.
(refactored patch by Graf)
2018-08-21 15:06:53 +02:00
Magnus Norddahl
a1c5194a25
- fix missing forward declaration when falling back to older user shaders
2018-08-20 20:11:36 +02:00
drfrag666
76dffaf658
- Fixed bad merge of "- rewrite the user shader support for materials - new syntax is to create a 'Material ProcessMaterial()' function".
2018-08-20 12:50:54 +02:00
Magnus Norddahl
fb31572ba3
- fix user defines and textures not working
2018-08-20 01:43:22 +02:00
Magnus Norddahl
e59859e34d
- improve the gldefs syntax by allowing the shader to be specified in the material section
...
# Conflicts:
# src/r_data/gldefs.cpp
2018-08-20 01:43:02 +02:00
Magnus Norddahl
9c74c9629a
- rewrite the user shader support for materials - new syntax is to create a 'Material ProcessMaterial()' function
...
# Conflicts:
# src/gl/shaders/gl_shader.cpp
# src/hwrenderer/textures/hw_material.cpp
# src/r_data/gldefs.cpp
# wadsrc/static/shaders/glsl/main.fp
2018-08-20 01:22:34 +02:00
usernameak
8f509bf784
Added ability to set defines in custom HW shaders
2018-08-19 21:50:44 +02:00
usernameak
57d4536f76
Fix codestyle; add ability to name the textures
2018-08-19 21:50:29 +02:00
usernameak
5cddbe4a16
Made ability to define custom material shaders for ProcessMaterial function
...
# Conflicts:
# src/r_data/gldefs.cpp
2018-08-19 21:50:14 +02:00
usernameak
4c106de5d7
Custom hardware shaders now can use custom texture units
...
# Conflicts:
# src/gl/textures/gl_material.cpp
# src/textures/textures.h
2018-08-19 21:47:32 +02:00
Christoph Oelckers
81de21af18
- added a 'lightsizefactor' command to gldefs.
...
This is for mitigating the recently discovered problem with attenuated lights getting reduced in size, even on OpenGL 3+. The intent of the shrinking was to account for higher brightness of non-attenuated lights on OpenGL 2 and was never meant to be active on more modern versions.
The factor will apply to any attenuated light defined after it and will be inherited by included sub-lumps, but it will only last for the lunp it is set in.
If you have a definition for the broken behavior, AddLightAssociation
'lightsizefactor 0.667' at the top of your GLDEFS.
2018-08-19 20:59:46 +02:00
Christoph Oelckers
b03c329ec6
- moved all GLDEFS parsing into a dedicated source file.
...
- split gl_postprocessshader.h in two so that the hardware independent part can be used by GLDEFS without pulling in all of OpenGL.
# Conflicts:
# src/CMakeLists.txt
# src/gl/dynlights/gl_glow.cpp
# src/gl/renderer/gl_postprocess.cpp
# src/gl/textures/gl_texture.cpp
2018-08-19 20:56:49 +02:00
drfrag666
1caf2cacbb
Revert "- added a 'lightsizefactor' command to gldefs."
...
This reverts commit 538897430d
.
2018-08-19 19:35:32 +02:00
Christoph Oelckers
0fd1909f2c
- got rid of FNameNoInit and made the default constructor of FName non-initializing.
...
This setup has been a constant source of problems so now I reviewed all uses of FName to make sure that everything that needs to be initialized is done manually.
This also merges the player_t constructor into the class definition as default values.
2018-08-19 10:36:10 +02:00
alexey.lysiuk
7f864d563c
- cleaned up inconsistent leading whitespaces
...
Bump copyright year as well
2018-08-18 19:46:05 +02:00
alexey.lysiuk
e84b360cb5
- prohibit assignment of dynamic arrays
...
https://forum.zdoom.org/viewtopic.php?t=61682
2018-08-18 19:45:52 +02:00
alexey.lysiuk
2ce7760e49
- support static const arrays inside structs
...
https://forum.zdoom.org/viewtopic.php?t=61677
2018-08-18 13:01:46 +02:00
Marisa Kirisame
8eaa0b17c6
Added missing check for HITOWNER on bouncers with 0 damage.
2018-08-18 00:52:37 +02:00
Marisa Kirisame
d8df6a7e6d
Add HITOWNER flag, when set, allows a projectile to collide with its shooter.
2018-08-18 00:52:36 +02:00
Marisa Kirisame
ab56666219
Add "IsFinal" parameter for CheckReplacement.
...
If set to true it guarantees that the replacement is final and will not go through the rest of the replacement chain.
2018-08-18 00:52:34 +02:00
Marisa Kirisame
5095ee28f1
Added CheckReplacement to event handlers, a function inspired by its namesake in Unreal's Mutator class.
...
Performs runtime replacement of actor classes.
Takes priority over the "replaces" keyword in both DECORATE and ZScript.
2018-08-18 00:52:32 +02:00
drfrag666
9d3326d847
- Add stack protection for MinGW.
...
# Conflicts:
# src/CMakeLists.txt
2018-08-17 01:42:18 +02:00
Christoph Oelckers
61ba0980d5
- fixed FS camera for real.
2018-08-14 23:48:43 +02:00
argv-minus-one
98db61dc74
Make various getter and pure-math Actor methods clearscope.
...
These methods do not examine or change playsim state. They only perform math or look at class metadata.
Methods changed are:
• deltaangle
• absangle
• AngleToVector
• RotateVector
• Normalize180
• BobSin
• GetDefaultSpeed
• FindState
• GetDropItems (which changes the scope of the returned struct, but the returned struct is all-readonly anyway)
2018-08-14 23:48:42 +02:00
Christoph Oelckers
ae49f6138e
- fixed FraggleScript's moving camera.
...
The logic here was a bit more complicated than I assumed but it was all buried in a heap of code that tried to deal with angular wraparounds in the BAM format.
2018-08-14 01:14:22 +02:00
drfrag666
285791622d
Revert "- update xBRZ upscaler to version 1.6"
...
This reverts commit 6dd17b4ef0
.
This broke compilation with TDM-GCC 5.1. While it has problems i still use it for convenience, also no more win98.
2018-08-12 11:36:58 +02:00
drfrag666
edb34184ff
- Removed 5x and 6x xBRZ modes from the menu since they require a lot of video memory. They crash on my 1 GB amd card at least with MinGW-w64.
2018-08-12 11:21:25 +02:00
alexey.lysiuk
16126a569b
- added a warning for texture upscaling modes
2018-08-10 21:16:10 +02:00
alexey.lysiuk
aa4cb300da
- added 5x and 6x upscaling with xBRZ
2018-08-10 21:16:09 +02:00
alexey.lysiuk
41865d44e1
- localized names for xBRZ scaling modes
2018-08-10 21:16:08 +02:00
alexey.lysiuk
8197bf436d
- cleaned up old xBRZ 1.0 upscaler
...
Removed obsolete header comments and support for C++98
Disabled Windows only debug features
# Conflicts:
# src/gl/xbr/xbrz_old.cpp
2018-08-10 21:16:07 +02:00
alexey.lysiuk
6dd17b4ef0
- update xBRZ upscaler to version 1.6
...
Fixed build with all suported toolchains thanks to incomplete implementation of C++14 in MSVC 2015 and GCC 4.9
Removed obsolete header comments and support for C++98
Disabled Windows only debug features
https://sourceforge.net/projects/xbrz/
https://sourceforge.net/projects/xbrz/files/xBRZ/xBRZ_1.6.zip
2018-08-10 21:05:40 +02:00
Christoph Oelckers
01109897b0
- replaced gl_PatchMenu with an MMX 'ifoption' check.
...
# Conflicts:
# src/gl/system/gl_framebuffer.cpp
2018-08-10 20:47:06 +02:00
Christoph Oelckers
403a99915f
Revert "Add RenderStyle API"
...
This reverts commit 8c7d3b6ab8
.
With DTA_LegacyRenderStyle being added there is no pressing need for this. Aside from that there's an utterly unhealthy amount of information duplication here and it is missing some more recent additions.
2018-08-05 20:46:33 +02:00
Marisa Kirisame
1689203e35
Additional blocking-related flags for Actor.LineTrace()
2018-08-05 19:48:58 +02:00
Zombie
de0a4f8664
Add RenderStyle API
2018-08-05 19:41:55 +02:00
drfrag666
5b76d7563b
- Changed default GL sprite billboard mode to X/Y axis.
2018-08-04 14:44:43 +02:00
David Carlier
ce4d1fc1e4
Texture data overlap occuring here, using memmove instead.
2018-08-04 09:51:26 +02:00
alexey.lysiuk
44084f81af
- fixed compilation warning reported by MSVC
...
src\r_data\models\models_ue1.cpp(103): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
2018-08-04 09:51:22 +02:00
Magnus Norddahl
d0ea9d7329
fix: softpoly TEXTURES sprites with scale of 2 are tiled
2018-07-30 23:35:58 +02:00
drfrag666
ad4cf1a41b
- Update ZScript version.
2018-07-30 02:03:53 +02:00
Christoph Oelckers
a7a350d37e
- always retrieve uniform buffer properties.
...
They are sometimes needed even if shader storage buffers are available.
# Conflicts:
# src/gl_load/gl_interface.cpp
2018-07-29 22:34:11 +02:00
Christoph Oelckers
8c144881a8
- allow skipping optional arguments of the parent function in a virtual override definition.
...
This is mainly to allow retroactive addition to existing virtual functions without breaking existing content.
The MeansOfDeath fix for Actor.Die would not be possible without such handling.
2018-07-29 19:30:30 +02:00
Christoph Oelckers
f48b2d8b71
- fixed: A global variable was used to pass MeansOfDeath to ClientObituary.
...
The problem here is that this affects the public scripting interface so it cannot be committed to master without further adjustments.
# Conflicts:
# src/p_interaction.cpp
2018-07-29 19:30:28 +02:00