summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2019-04-16 13:42:13 +0300
committerMahmoud Badri <mahmoud.badri@qt.io>2019-05-02 10:19:23 +0000
commit3dc7636713c98ce2748d367f8525fcab85a6c425 (patch)
tree12411317058e10feae817e25c33f0e5e24577298 /src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp
parent437593e677cd1ed85ef846a3488dc3212fdde54a (diff)
Support alpha channel initial work
In this initial work, all (almost) color properties are converted into a new type (float4) to support an alpha channel. Alpha channel option is shown in the color dialog for Layer and Scene background properties only. The following is remaining: - Scene background alpha doesn't work in the editor (works in the viewer RT1) Task-number: QT3DS-3128 Change-Id: Ib5540ebc8e2ff68709473451e4a92bf66ddb8ad2 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp')
-rw-r--r--src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp b/src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp
index 0af8758a..146d0956 100644
--- a/src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp
+++ b/src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp
@@ -321,10 +321,10 @@ void StudioSubpresentationRenderer::RenderWithClear(
const SOffscreenRendererEnvironment &inEnvironment,
NVRenderContext &inRenderContext, QT3DSVec2 inPresentationScaleFactor,
SScene::RenderClearCommand inColorBufferNeedsClear,
- QT3DSVec3 inclearColor,
+ QT3DSVec4 inclearColor,
const SRenderInstanceId instanceId)
{
- inRenderContext.SetClearColor(QT3DSVec4(inclearColor, 1.0));
+ inRenderContext.SetClearColor(inclearColor);
Render(inEnvironment, inRenderContext, inPresentationScaleFactor,
inColorBufferNeedsClear, instanceId);
}