2020-04-25 22:01:04 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-08-19 14:57:37 +00:00
|
|
|
#include "zstring.h"
|
|
|
|
#include "tarray.h"
|
|
|
|
|
2020-04-25 22:01:04 +00:00
|
|
|
enum class PostProcessUniformType
|
|
|
|
{
|
|
|
|
Undefined,
|
|
|
|
Int,
|
|
|
|
Float,
|
|
|
|
Vec2,
|
|
|
|
Vec3
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PostProcessUniformValue
|
|
|
|
{
|
|
|
|
PostProcessUniformType Type = PostProcessUniformType::Undefined;
|
|
|
|
double Values[4] = { 0.0, 0.0, 0.0, 0.0 };
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PostProcessShader
|
|
|
|
{
|
|
|
|
FString Target;
|
|
|
|
FString ShaderLumpName;
|
|
|
|
int ShaderVersion = 0;
|
|
|
|
|
|
|
|
FString Name;
|
|
|
|
bool Enabled = false;
|
|
|
|
|
|
|
|
TMap<FString, PostProcessUniformValue> Uniforms;
|
|
|
|
TMap<FString, FString> Textures;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern TArray<PostProcessShader> PostProcessShaders;
|
|
|
|
|