Alexis Maiquez
e888bb452d
Fix bloom effect FBO's not using GL_LINEAR, no more blocky bloom
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:45:14 +01:00
Alexis Maiquez
30bb8d6d72
Small cleanup of pass initialization code
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:36:07 +01:00
Alexis Maiquez
9bb0a40bc5
Simplified usage of jsonFindUserConfig
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:29:01 +01:00
Alexis Maiquez
59bff58f5c
Updated README with mpv dependencies
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:15:48 +01:00
Alexis Maiquez
7079d12e2a
Switched video backgrounds to mpv (should fix all the videos that weren't playing sound or had random issues)
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:11:04 +01:00
Alexis Maiquez
a24b1923f6
Cleanup of code:
...
- use of auto in some places (more of this to come)
- use for loops instead of iterators for most of the loops
- extracted glfw/glew code into it's own class
- make usage of std::filesystem instead of checking things with old C libraries
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-03 18:41:51 +01:00
Alexis Maiquez
d370e028ff
Renamed CContext to CRenderContext to allow for the introduction of CAudioContext in following iterations
...
Improved logging and error reporting to be a bit more flexible
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-03 00:00:17 +01:00
Alexis Maiquez
4dc3a4bc01
Added g_PointerPositionLast
...
Improved delay calculation for parallax (should prevent backgrounds from flickering with big delays)
Fixed g_TexelSize having the wrong value and g_TexelSizeHalf not being defined
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 18:40:38 +01:00
Alexis Maiquez
e1fe215398
Undid some assumptions on how visible works as they were not entirely right
...
Effect's visible behaves a little weirdly :/ need to properly understand it
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 03:31:40 +01:00
Alexis Maiquez
92bdde2bd1
Renamed CUserSettingColor to CUserSettingVector3 as it makes more sense
...
CUserSettingVector3 are initializable with just one float value
Objects' origin and scale are now UserSettings too
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 03:10:38 +01:00
Alexis Maiquez
885221d602
Removed a missed line in previous commit
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 02:38:45 +01:00
Alexis Maiquez
fdd5bcb0b5
Removed old jsonFindUserConfig and updated to a new version using the CUserSetting classes
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 02:36:29 +01:00
Alexis Maiquez
176470dad9
Image color and alpha can now be user-settings
...
Removed old Color structures not useful anymore
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 02:08:05 +01:00
Alexis Maiquez
cd40950ade
Fixed some shaders not getting properly compiled (missing part of the content)
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 01:07:09 +01:00
Alexis Maiquez
cec1baef30
Added explanations on the properties part of the backgrounds
...
Any --set-property will now output something when a value is being applied to ease debugging
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 22:44:27 +01:00
Alexis Maiquez
4b4a79393c
Added apt-get update to cmake action
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 22:30:46 +01:00
Alexis Maiquez
73f531bb38
Replaced codeql analysis for plain cmake building
...
Added badges to the readme
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 22:29:38 +01:00
Alexis Maiquez
8211a7010b
Hopefully address the issue with REQUIRED_VARS for FindFFMPEG.cmake in cmake earlier than 3.18
...
Properly addresses issue #121 (and hopefully discussion #140 )
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 22:16:08 +01:00
Alexis Maiquez
9cddb56f60
Added support for setting values to properties from command-line to modify how backgrounds look
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 22:07:59 +01:00
Alexis Maiquez
cf37fe388c
Added support for usersettings in the bloom
...
Added casting for integer to double in json loading
Added support for dumping all available properties
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 21:37:38 +01:00
Alexis Maiquez
fc150576eb
Object and effect visibility can now be compared to project's properties
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-30 13:34:02 +01:00
Alexis Maiquez
a1c07b524b
Merge branch 'main' of git@github.com:Almamu/linux-wallpaperengine.git
2023-01-29 21:15:47 +01:00
Alexis Maiquez
62af627ffa
Added some missing texture formats to the definition
...
Added some extra settings for debugging
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-29 21:15:26 +01:00
Daniel Coughlan
59cea56fef
corrections to the README.md file
2023-01-29 13:23:12 +01:00
Daniel Coughlan
d56d057c1d
Clean up README.md
2023-01-29 13:23:12 +01:00
Alexis Maiquez
e16d54bba3
Added an extra path for background loading
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-12-05 10:36:42 +01:00
Alexis Maiquez
6f570be911
g_ModelViewProjectionMatrix should now have the right values for passes (fixes sun not displaying properly in 2882477794)
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-11 17:09:47 +01:00
Alexis Maiquez
f4ccf40e14
Fixed background scaling (should improve #81 )
...
Added some more debug information for renderdoc
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-06 12:48:55 +01:00
Alexis Maiquez
087a0976ae
Added support for taking a screenshot after wallpaper's up (useful for pywal and other ricing rools)
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-05 11:00:51 +01:00
Alexis Maiquez
fa67fa5b00
Fixed bloom effect not being properly applied
...
Added support for userparameter on the clearcolor of the scene
Scenes should draw into the full framebuffer
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-05 10:50:55 +01:00
Alexis Maiquez
56ebb78287
Fix videos being flipped vertically (missed from last commit)
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-04 19:09:29 +01:00
Alexis Maiquez
672ea47d23
Bumped up to OpenGL 3.3
...
Added base VAO
Fixed scene image align issues and things being flipped vertically under specific situations
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-04 18:41:23 +01:00
Alexis Maiquez
0843f69edf
Fix some backgrounds appearing flipped upside down, bloom effect now renders directly into the _rt_FrameBuffer as the flip happens after the scene is drawn completely
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-04 11:28:10 +01:00
Alexis Maiquez
ed1efdcd66
Added parsing for text properties
...
Simplified how passes rendering works and separated it into a two stages process
Setup (prepares shaders, uniforms, attributes, etc)
Render (only performs the actual rendering)
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-04 10:16:15 +01:00
Alexis Maiquez
d8d05363a9
Implemented proper alignment for images
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-04 10:13:01 +01:00
Alexis Maiquez
b32275052f
Clarify xrandr and de compatibility a little bit more
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-04 00:39:24 +01:00
Alexis Maiquez
08586dcab6
Added some extra debugging for when glewInit fails, should make it easy to debug #128
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-04 00:37:31 +01:00
Alexis Maiquez
aa755bb221
Fixed scale for FBOs should default to 1
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-04 00:21:04 +01:00
Alexis Maiquez
691ac42e85
Added small helper to get user-customizable settings with defaults
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-04 00:04:05 +01:00
Alexis Maiquez
e24c19ff81
Added Missing braces that caused crashing on non-bloom backgrounds
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-03 23:34:21 +01:00
Alexis Maiquez
b5b7824233
Better approach on rendering the bloom effect, uses one less draw call
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-03 23:32:49 +01:00
Alexis Maiquez
cdaebbe893
Added support for camera bloom
...
Added support for virtual files
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-03 23:07:13 +01:00
Alexis Maiquez
625397ea0c
Added a basic (and somewhat convincing) parallax effect for the camera
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-03 18:43:05 +01:00
Alexis Maiquez
c13d743022
Container access should happen through CContext
...
Textures now have a cache system that prevents loading them more than once
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-03 14:27:05 +01:00
Alexis Maiquez
5521e90155
Ignore composelayers for now
...
Added support for color blend mode
Main pass' blendmode should be normal
Last pass' blendmode should be the first's
Fixed order of glClear's so _rt_FullFrameBuffer is the right color at the right time
Simplified effect and pass creation code a bit more
Non-visible images should render the full chain into the pingpong framebuffers instead of to screen
Fixed an integer division not producing float numbers
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-03 13:14:52 +01:00
Alexis Maiquez
261bc696df
Added some object labels in opengl so they're reflected on RenderDoc while on debug
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-02 09:28:42 +01:00
Alexis Maiquez
69657a0014
Ignore effects if there's none in the list
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-01 21:38:12 +01:00
Alexis Maiquez
4641420bb3
Fix image's GBO's not being the right size
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-01 21:12:30 +01:00
Alexis Maiquez
082af30c63
Cleanup of rendering code for images, there's functions not needed anymore
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-01 05:43:18 +01:00
Alexis Maiquez
e377960a87
Fix red textures being distorted
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-01 05:04:06 +01:00