1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-16 01:20:35 +00:00
Commit Graph

34 Commits

Author SHA1 Message Date
Sergey Lipskiy
46c65776a0 Code refactor and cleanup:
* type cast fixes
* signed/unsigned fixes
* code formatting fixes
* class members initialization fixes
2020-11-14 16:54:28 +07:00
Sergey Lipskiy
1cfdb4787d Use hybrid filter for upscale buffer copy and plain bilinear filter for downscale one.
Related to PR #2242
2020-05-10 15:56:09 +07:00
Sergey Lipskiy
8a9d52b41b Fix static noise on screens in Space Station Silicon Valley.
Problem: the static on the screens is the result of alpha test with a random threshold.
The screens use 2 cycle combiner. First cycle for alpha uses "combined" input.
A value for this input is not set yet in the first cycle, so the result of alpha test is usually wrong.

Solution: replace "combined" input in the first cycle by special "half" input.

Fixed #1764
2020-03-08 23:28:54 +07:00
Sergey Lipskiy
25b270492e Revert "Don't use glGetTexLevelParameteriv to determine texture size"
This reverts commit b31e510932.
2019-11-30 15:31:43 +07:00
fzurita
b31e510932 Don't use glGetTexLevelParameteriv to determine texture size 2019-11-29 15:56:22 +07:00
Sergey Lipskiy
86a227308e Implement copy depth to main depth buffer. It is necessary for correct work of some Reshade shaders. 2019-09-27 19:33:18 +07:00
Sergey Lipskiy
258e51d44d Code cleanup: remove unused CombinerInfo::getCombinersNumber() 2019-06-23 17:32:28 +07:00
Sergey Lipskiy
26623cec1f Code cleanup: fix issues in GLideN64 found by static code analyser. 2017-11-18 22:07:27 +07:00
Sergey Lipskiy
c5c0fbeb6f Use combiners keys when ShaderProgramBinary is not supported and shaders storage con not be created. 2017-10-28 21:48:01 +07:00
Sergey Lipskiy
aba3fefe63 Implement alternative methods of combiners shaders load.
Combiners muxes saved in separate text file.
When shader cache becames invalid, list of shaders muxes used to re-create combiners.
2017-10-26 00:27:52 +07:00
Francisco Zurita
762def7dae Fix issues reported by Valgrind 2017-10-09 23:51:16 -04:00
Sergey Lipskiy
1266ced083 Code cleaup: remove unused MonochromeCombiner. 2017-09-24 18:51:02 +07:00
Sergey Lipskiy
80ed169e24 Remove use of OpenGL.h 2017-01-22 20:43:05 +07:00
Sergey Lipskiy
e83c3489a3 Replace OGLVideo by DisplayWindow
Replace OGLRender by GraphicsDrawer
2017-01-16 20:56:11 +07:00
Sergey Lipskiy
f92dd70d36 Rename Drawer to GraphicsDrawer 2017-01-11 13:08:05 +07:00
Sergey Lipskiy
dd57479838 Add Drawer class to replace OGLRender WIP 2017-01-10 22:22:32 +07:00
Sergey Lipskiy
7af25b2452 Rewrite shader cache 2017-01-08 17:49:53 +07:00
Sergey Lipskiy
c68b6b9085 Special shaders 2017-01-08 17:49:50 +07:00
Sergey Lipskiy
41d0a9ade5 Replace ShaderCombiner 2 2017-01-08 17:49:39 +07:00
Sergey Lipskiy
9725c527b9 Replace ShaderCombiner by graphics::CombinerProgram WIP 2017-01-08 17:49:37 +07:00
Sergey Lipskiy
19f5f8b302 Move CombinerKey class to separate files. 2017-01-03 13:37:50 +07:00
Sergey Lipskiy
599f7b1e93 Make separate vertex shaders for triangles and rects. 2016-12-31 19:29:50 +07:00
Sergey Lipskiy
ccde41b7de Incapsulate combiner key logic in class CombinerKey. 2016-12-25 17:34:12 +07:00
Francisco Zurita
bd04064b6b Fix issues with shader storage and HW lighting in Android
The cause was that we were loading the shader cache before we loaded any
microcodes through GBI. With this change, shader storage will now store
wether it's possible to do HW lighting based on GBI status.
2016-08-16 16:33:30 +07:00
Sergey Lipskiy
86fbea9edc Code refactor: replace NULL by nullptr. 2016-06-10 12:40:18 +06:00
Sergey Lipskiy
f2ebb7d1d4 Add cycle type to combiner's key. If the same combiner is used with different cycle types, it must be compiled separately for each cycle type. 2016-05-05 16:38:54 +06:00
Sergey Lipskiy
5fc82399bc Save correct ConfigOptionsBitSet to shader storage header.
Fix Enabling HW Lightning with Shader Storage enabled breaks lightning #922
2016-03-22 20:51:08 +06:00
Sergey Lipskiy
a12c9e7464 Change shaders storage format: add information about config options used on
the moment of storage creation.
If user changes option(s), which changes the way of shaders creation then
shaders storage have to be reset.
2015-10-08 22:54:43 +06:00
Sergey Lipskiy
f267ca36fc Rename [save/load]CombinersCache() methods to [save/load]ShadersStorage() ones. 2015-10-08 22:54:40 +06:00
Sergey Lipskiy
38baef70de Implement persistent cache for compiled shaders. 2015-10-08 22:54:01 +06:00
Sergey Lipskiy
b897c449a1 Fix shader texture uniforms update for GLES2.
Fixed issue #586.
Thanks Gillou68310 for the hint.
2015-06-23 22:19:11 +06:00
Sergey Lipskiy
e73cee3a58 Code refactor: add abstract class UniformCollection.
Implement it for desktop GL: OGL3X/UniformBlock
and for GLES2: GLES2/UniformSet

GLES3 and above must use OGL3X/UniformBlock.
2015-05-20 11:32:05 +06:00
Sergey Lipskiy
9779399306 GLES2: Replace UniformBlocks by separate uniforms. 2015-05-18 13:51:08 +06:00
Sergey Lipskiy
52d68d1389 Move all sources to src folder. 2015-05-13 10:21:32 +06:00