PostProcessing: Allow fragment coordinate access from shader

This commit is contained in:
Connor McLaughlin
2020-09-13 18:50:40 +10:00
parent c4f18c12d5
commit c1006bd0ff
2 changed files with 9 additions and 1 deletions

View File

@ -156,6 +156,7 @@ void ShaderGen::WriteHeader(std::stringstream& ss)
ss << "#define HLSL 1\n";
ss << "#define roundEven round\n";
ss << "#define mix lerp\n";
ss << "#define fract frac\n";
ss << "#define CONSTANT static const\n";
ss << "#define VECTOR_EQ(a, b) (all((a) == (b)))\n";
ss << "#define VECTOR_NEQ(a, b) (any((a) != (b)))\n";