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
8
class
ShaderTextureNode
:
public
SNENode
9
{
10
public
:
11
ShaderTextureNode
(
GLSLHandler
*handler,
ShaderTextureManager
*textureManager);
12
~ShaderTextureNode
();
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
};
GLSLHandler
Definition:
GLSLHandler.h:75
SNENode
Definition:
ShaderNodeEditor.h:54
ShaderTextureManager
Definition:
ShaderTextureManager.h:11
ShaderTextureNode
Definition:
ShaderTextureNode.h:9
Texture2D
Definition:
Texture2D.h:8
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:17860
GLSLFunction
Definition:
GLSLHandler.h:59
GLSLLine
Definition:
GLSLHandler.h:33
TerraForge3D
include
Shading
ShaderNodes
ShaderTextureNode.h
Generated on Thu Apr 7 2022 14:10:50 for TerraForge3D by
1.9.3