TerraForge3D  2.3.1
3D Terrain And Landscape Generator
ShaderTextureNode.h
1#pragma once
2
3#include "Shading/ShaderNodeEditor.h"
4#include "Shading/ShaderTextureManager.h"
5#include "Base/Texture2D.h"
6
7
9{
10public:
11 ShaderTextureNode(GLSLHandler *handler, ShaderTextureManager *textureManager);
13
14 virtual void OnEvaluate(GLSLFunction *function, GLSLLine *line) override;
15 virtual void Load(nlohmann::json data) override;
16 virtual nlohmann::json Save() override;
17 virtual void OnRender() override;
18 virtual void UpdateShaders() override;
19
20 Texture2D *texture = nullptr;
21 ShaderTextureManager *textureManager = nullptr;
22 float scale = 1.0f;
23 float offsetX = 0.0f;
24 float offsetY = 0.0f;
25 float rotation = 0.0f;
26 uint32_t zCoord = 0;
27 bool isTriplanar = false;
28};
a class to store JSON values
Definition: json.hpp:17860