summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJere Tuliniemi <jere.tuliniemi@qt.io>2018-05-03 13:35:31 +0300
committerJere Tuliniemi <jere.tuliniemi@qt.io>2018-05-04 09:10:10 +0000
commited8d477a0ac7c3a19da20462c85ebffce1aeb36e (patch)
treea6d4959da5f571695751640b50daa9e60fe9edf6
parent4de8d6d86523c5c28221dc7dd8b6a273f5476f94 (diff)
Fix vertex color shading
The vertex color was normalized for no reason. Task-number: QT3DS-1507 Change-Id: I04bed3d093c82aad0e62fed7757c5e1e2d052666 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r--src/Runtime/Source/Qt3DSRuntimeRender/RendererImpl/Qt3DSVertexPipelineImpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Runtime/Source/Qt3DSRuntimeRender/RendererImpl/Qt3DSVertexPipelineImpl.h b/src/Runtime/Source/Qt3DSRuntimeRender/RendererImpl/Qt3DSVertexPipelineImpl.h
index a1289ebb..f5ee6716 100644
--- a/src/Runtime/Source/Qt3DSRuntimeRender/RendererImpl/Qt3DSVertexPipelineImpl.h
+++ b/src/Runtime/Source/Qt3DSRuntimeRender/RendererImpl/Qt3DSVertexPipelineImpl.h
@@ -325,7 +325,7 @@ namespace render {
return;
AddInterpolationParameter("varColor", "vec3");
DoGenerateVertexColor();
- Fragment().Append("\tvec3 vertColor = normalize(varColor);");
+ Fragment().Append("\tvec3 vertColor = varColor;");
}
bool HasActiveWireframe() override { return m_Wireframe; }