Commit Graph

83 Commits (d39552962f36473cbaf031a563b45d9835336024)

Author SHA1 Message Date
Andrei Kortunov b1c8a968ae Do not use invalid iterators 1 year ago
Shi Han a90e3b8c3b Move from std::atoi to std::from_char 2 years ago
Petr Mikheev e007dc9d6b Log reserving texture units 2 years ago
Cody Glassman 6a64f352a4 fix shader compilation 2 years ago
psi29a 4faa1bf3e8 Merge branch 'moo-bitch-get-out-my-hay' into 'master'
Don't use FFP-friendly texture image units for shadow maps

Closes #7102

See merge request OpenMW/openmw!2682
2 years ago
Cody Glassman ac4787aeec shade refactor 2 years ago
AnyOldName3 7d4410d4fb Use reserveGlobalTextureUnits for shadow maps 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Project579 c226b35f1f Fix some remaining encoding errors due to std::filesystem transition. 2 years ago
Project579 a13709c510 Replace implicit convertions from std::filesystem::path to std::string with correctly converting functions. 2 years ago
Project579 e5c417c968 Make sure all paths are passed as std::filesystem::path instead of std::string where possible. 2 years ago
psi29a 4078f19c74 Merge branch 'SHADER_HOT_RELOAD' into 'master'
Shaders: Hot reload, togglable by lua debug command

See merge request OpenMW/openmw!2238
2 years ago
florent.teppe 25c1f0ca16 Renamed variable to fix case issue 2 years ago
Andrei Kortunov e3ad30a517 Do not copy data when it is not needed 2 years ago
florent.teppe 166717d601 Makes sure threads are only stopped once ,and that they will be re-started 2 years ago
florent.teppe 16a4b5716b adds missing include 2 years ago
florent.teppe decfbc5387 Fix threading issues 2 years ago
florent.teppe 603b30e117 Added some variable names to make it clearer what their function was
avoid having lost of ->first and ->second that aren't meaningfull
2 years ago
florent.teppe 3ab0a99154 Hot reload done only once every 200 ms, no point in beeing faster
it may also help with bugs where the file is still locked and can't be opened
2 years ago
florent.teppe cc9d436413 includes now work when the same shader has different defines 2 years ago
florent.teppe 7b78bf4b66 Fix files with different defines weren't added to the hot reload manager 2 years ago
florent.teppe a1c8dc9d45 C++17 compat ? 2 years ago
florent.teppe cdd95f7889 replaced empty function body by default 2 years ago
florent.teppe 9a475b0c97 fixed blank lines and missing breaks 2 years ago
florent.teppe b6d7293a12 Removed weird lines that I thought were necessary to please the compiler 2 years ago
florent.teppe 68d0698924 Fixed cyclical included check 2 years ago
florent.teppe aa51d6de2a Missing chrono include ? 2 years ago
elsid f99ed6f1db
Split components/misc/stringops.hpp into multiple headers
Replace all ciEqual overloads with one having std::string_view as argument.
2 years ago
florent.teppe f78fa989ee fixed include, cleaned comments and indentation 2 years ago
florent.teppe 6b38d62223 Added lua bindings to toggle hot reload (disabled by default) or to trigger a reload 2 years ago
florent.teppe 4e7c1c5bef Added break when the operation failed 2 years ago
florent.teppe 8d194a1601 Shaders: rudimentary hot reloader on shaders
every frame we poll the files and check if they are older or newer than the last test, if they are newer we find all the shader that included that file and update them
2 years ago
elsid bef15edf0b
Remove redundant ostream, istream, iostream and sstream includes
* Replace by std::to_string and operator+ where possible.
* Move the code requiring to include <sstream> from .hpp to .cpp files.
3 years ago
glassmancody.info b09411d396 allow soft particles on meshes and add extra data extensions 3 years ago
Petr Mikheev 3bf18c601c Better fog 3 years ago
jvoisin 21efb74b58 Remove even most boost:: 3 years ago
Evil Eye a64979e25d Replace empty std::string assignments 3 years ago
madsbuvi dc3045c970 mono-only version of the shader linking system introduced in the stereo MR 3 years ago
Bo Svensson 2e031f195b
fixes LightBufferBinding messages (#3223)
This PR aims to solve `uniform block LightBufferBinding has no binding` messages @glassmancody has reportedly encountered since PR #3110 due to an apparent bug in OSG. While we do have to add a workaround here that adds a bit of clunkiness, #3216 should allow us to clean up these interactions a bit in the future.
3 years ago
Bo Svensson 8358418555
set the correct program link parameters (#3110)
* shadermanager.hpp setProgramTemplate

* shadermanager.hpp

* shadermanager.cpp setProgramTemplate

* shadervisitor.hpp setProgramTemplate

* shadervisitor.cpp setProgramTemplate

* scenemanager.cpp setProgramTemplate

* scenemanager.hpp setProgramTemplate

* renderingmanager.cpp

* groundcover.cpp setProgramTemplate

* groundcover.hpp

* groundcover.cpp

* shadervisitor.cpp

* util.cpp

* lightmanager.cpp

* scenemanager.cpp

* scenemanager.hpp

* lightmanager.cpp

* lightmanager.cpp

* lightmanager.cpp

* scenemanager.hpp [ci skip]

* water.cpp

* groundcover.cpp

* shadermanager.hpp
3 years ago
jvoisin cb08f490d7 Sprinkle some const-ref in loop
This was done on the good advices of clang-tidy
3 years ago
jvoisin 1123dc46ee Add a ton of const refs 4 years ago
glassmancody.info bb834fb44e append filename to shader names 4 years ago
glassmancody.info 690995988b More formatting, OpenCS cells are unbroken 4 years ago
glassmancody.info 43ac32921c Rewrite, support different lighting methods 4 years ago
glassmancody.info 9d9074c244 Add shared UBO 4 years ago
glassmancody.info dda735c54a initial commit 4 years ago
Andrei Kortunov 14cf0ce1dc Implement instanced groundcover 4 years ago
AnyOldName3 72f7e6a702 Handle all shadow alpha uniforms in shadowsbin 4 years ago
Mads Buvik Sandvei d5450a7d88 Correctly resetting line numbering during shader processing. 4 years ago