diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-12-28 13:01:57 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-04-22 16:51:58 -0700 |
| commit | 88134a6786b102dbb9b473fa42d748ae9c64af91 (patch) | |
| tree | b84dc24f3690bd0155ee2bbaa8bbf7856be99685 /Source/Core/VideoCommon/UberShaderVertex.cpp | |
| parent | 2e01dc0c82b5f73215e3425ab45ff6c7ee50b389 (diff) | |
VertexShaderGen: Simplify normal calculation
This is a readability change; there should be no functional or performance differences.
Diffstat (limited to 'Source/Core/VideoCommon/UberShaderVertex.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/UberShaderVertex.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/UberShaderVertex.cpp b/Source/Core/VideoCommon/UberShaderVertex.cpp index 68915351d1..b21798b6f9 100644 --- a/Source/Core/VideoCommon/UberShaderVertex.cpp +++ b/Source/Core/VideoCommon/UberShaderVertex.cpp @@ -153,6 +153,7 @@ ShaderCode GenVertexShader(APIType api_type, const ShaderHostConfig& host_config " N2 = " I_POSNORMALMATRIX "[5].xyz;\n" "}}\n" "\n" + "// Multiply the position vector by the position matrix\n" "float4 pos = float4(dot(P0, rawpos), dot(P1, rawpos), dot(P2, rawpos), 1.0);\n" "o.pos = float4(dot(" I_PROJECTION "[0], pos), dot(" I_PROJECTION "[1], pos), dot(" I_PROJECTION "[2], pos), dot(" I_PROJECTION "[3], pos));\n" |
