diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-01-07 12:30:29 -0600 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-08-20 18:53:27 -0500 |
| commit | 931a8aa4139bddbc59a9cf94ca8e15f05000960c (patch) | |
| tree | e43aab9761999f50ac9b50598f5d1a4f9394d6a0 /Source/Core/VideoCommon/ShaderGenCommon.cpp | |
| parent | 675544ec2beb6ba8c3d766b3dfe52e6e8cc30c0d (diff) | |
VideoCommon: add milliseconds elapsed time value to pixel shaders as a uniform to be able to support animation effects in custom shaders
Diffstat (limited to 'Source/Core/VideoCommon/ShaderGenCommon.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/ShaderGenCommon.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.cpp b/Source/Core/VideoCommon/ShaderGenCommon.cpp index 5f2b2b224f..e4922f3e3e 100644 --- a/Source/Core/VideoCommon/ShaderGenCommon.cpp +++ b/Source/Core/VideoCommon/ShaderGenCommon.cpp @@ -447,5 +447,6 @@ void WriteCustomShaderStructDef(ShaderCode* out, u32 numtexgens) out->Write("\tCustomShaderTevStage[16] tev_stages;\n"); out->Write("\tuint tev_stage_count;\n"); out->Write("\tfloat4 final_color;\n"); + out->Write("\tuint time_ms;\n"); out->Write("}};\n\n"); } |
