From c3ea3593ea45f6a74ada9f9c192e34527091fd33 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Wed, 10 Apr 2019 17:46:42 -0500 Subject: [PATCH] typofix+ *add* computeForwardProbes to replicate the stateblock used in deferred --- Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp b/Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp index d77295f40..65982a9d7 100644 --- a/Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp +++ b/Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp @@ -3129,7 +3129,7 @@ void ReflectionProbeFeatHLSL::processPix(Vector &componentList { bumpNormal = new Var("bumpNormal", "float4"); LangElement* colorDecl = new DecOp(bumpNormal); - meta->addStatement(new GenOp(" @ = float4(1.0,0.0,0.0,0.0);\r\n", colorDecl)); //default to identiry normal + meta->addStatement(new GenOp(" @ = float4(1.0,0.0,0.0,0.0);\r\n", colorDecl)); //default to identity normal } Var *wsEyePos = (Var*)LangElement::find("eyePosWorld"); @@ -3148,7 +3148,7 @@ void ReflectionProbeFeatHLSL::processPix(Vector &componentList Var *surface = new Var("surface", "Surface"); meta->addStatement(new GenOp(" @ = createForwardSurface(@,@,@,@,@,@,@,@);\r\n\n", new DecOp(surface), diffuseColor, bumpNormal, matinfo, inTex, wsPosition, wsEyePos, wsView, worldToCamera)); - String computeForwardProbes = String::String(" @.rgb = computeForwardProbes(@,@,@,@,@,@,@,@,@,\r\n\t\t"); + String computeForwardProbes = String::String(" @.rgb += computeForwardProbes(@,@,@,@,@,@,@,@,@,\r\n\t\t"); computeForwardProbes += String::String("@,TORQUE_SAMPLER2D_MAKEARG(@),\r\n\t\t"); computeForwardProbes += String::String("TORQUE_SAMPLERCUBE_MAKEARG(@), TORQUE_SAMPLERCUBE_MAKEARG(@), \r\n\t\t"); computeForwardProbes += String::String("TORQUE_SAMPLERCUBEARRAY_MAKEARG(@),TORQUE_SAMPLERCUBEARRAY_MAKEARG(@)).rgb; \r\n");