mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Minor changes
This commit is contained in:
parent
e6752008e0
commit
e5afca89f7
8 changed files with 50 additions and 2 deletions
|
@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "settings.h"
|
||||
#include "noise.h"
|
||||
|
||||
// TODO: Probably this could still be improved, having a step for this seems silly
|
||||
class NoiseStep : public RenderStep {
|
||||
public:
|
||||
NoiseStep(TextureBuffer* buffer, u8 id, u32 size) :
|
||||
|
|
|
@ -728,6 +728,10 @@ ShaderInfo ShaderSource::generateShader(const std::string &name,
|
|||
shaders_header << "#define VOLUMETRIC_LIGHT 1\n";
|
||||
}
|
||||
|
||||
if (g_settings->getBool("enable_volumetric_clouds")) {
|
||||
shaders_header << "#define VOLUMETRICS_UNDERSAMPLING " << g_settings->getU32("volumetrics_undersampling") << '\n';
|
||||
}
|
||||
|
||||
shaders_header << "#line 0\n"; // reset the line counter for meaningful diagnostics
|
||||
|
||||
std::string common_header = shaders_header.str();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue