3#include "Base/NodeEditor/NodeEditor.h"
4#include "Shading/SharedMemoryManager.h"
5#include "Shading/GLSLHandler.h"
6#include "Utils/Utils.h"
11#define FLOAT_PIN_COLOR 23, 245, 235
12#define FLOAT2_PIN_COLOR 223, 155, 121
13#define FLOAT3_PIN_COLOR 154, 231, 123
14#define BOOL_PIN_COLOR 150, 191, 235
16#define SHADER_OUTPUT_NODE_COLOR 152, 54, 12
17#define SHADER_VALUE_NODE_COLOR 144, 124, 255
18#define SHADER_TEXTURE_NODE_COLOR 145, 32, 123
19#define SHADER_MATERIAL_NODE_COLOR 251, 123, 144
21#define STR(x) std::to_string(x)
22#define VAR(x) std::string(x) + STR(id) + GenerateId(5)
23#define SDATA(x) std::string("data[") + STR(dataBlobOffset) + "].d[" + STR(x) + "]"
36 param.userData1 =
static_cast<void *
>(function);
37 param.userData2 =
static_cast<void *
>(line);
45 SNEPin(NodeEditorPinType type = NodeEditorPinType::Input, SNEPinType var = SNEPinType::SNEPinType_Float);
50 void SetType(SNEPinType type);
63 virtual void UpdateShaders() = 0;
64 virtual void OnRender() = 0;
71 int dataBlobOffset = 0;
a class to store JSON values
SharedMemoryItem ! A data structure to be passed to the GPU.