From c65343b3c27b01e22e2668854802879fc9fe31f9 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Mon, 29 Dec 2025 14:26:53 -0600 Subject: [PATCH] truncation correction followup to https://github.com/TorqueGameEngines/Torque3D/pull/1639 clean up output calc formatting --- Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp | 2 +- Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp b/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp index 1e13d7805..fc8aa7f46 100644 --- a/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp +++ b/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp @@ -391,7 +391,7 @@ Var* ShaderFeatureGLSL::getOutTexCoord( const char *name, { // Statement allows for casting of different types which // eliminates vector truncation problems. - String statement = String::ToString( " @ = %s(@ * @);\r\n", type ); + String statement = String::ToString( " @ = %s(@) * @;\r\n", type ); meta->addStatement( new GenOp( statement, texCoord, inTex, tileScale) ); } } diff --git a/Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp b/Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp index 0594730e1..4a987d7cb 100644 --- a/Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp +++ b/Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp @@ -391,7 +391,7 @@ Var* ShaderFeatureHLSL::getOutTexCoord( const char *name, { // Statement allows for casting of different types which // eliminates vector truncation problems. - String statement = String::ToString( " @ = (%s)(@ * @);\r\n", type ); + String statement = String::ToString( " @ = (%s)(@) * @;\r\n", type ); meta->addStatement( new GenOp( statement, texCoord, inTex, tileScale) ); } }