diff options
author | Jere Tuliniemi <jere.tuliniemi@qt.io> | 2018-04-26 12:00:17 +0300 |
---|---|---|
committer | Jere Tuliniemi <jere.tuliniemi@qt.io> | 2018-04-30 08:49:15 +0000 |
commit | 5e3a87fbbf735d9d4f166ac3b65959a5a5097a1d (patch) | |
tree | 29b806c7a0d106a44cadfb6edd7dd5984612435a /src/Authoring/Studio/Render/StudioRendererTranslation.cpp | |
parent | dabf59f1c69c9e7b5777f9fe819d46ffb4304614 (diff) |
Add support for vertex colors
Adds a check mark for vertex color use to the default material in the
inspector. Adds vertex color parsing to the FBX and Collada importer.
Changes default material shaders to use vertex colors if enabled.
Task-number: QT3DS-1507
Change-Id: Ide4a9f0da1c4dabe4e9b573e4cb0a2aecf714398
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Render/StudioRendererTranslation.cpp')
-rw-r--r-- | src/Authoring/Studio/Render/StudioRendererTranslation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Render/StudioRendererTranslation.cpp b/src/Authoring/Studio/Render/StudioRendererTranslation.cpp index 58b0ce5c..82e943e0 100644 --- a/src/Authoring/Studio/Render/StudioRendererTranslation.cpp +++ b/src/Authoring/Studio/Render/StudioRendererTranslation.cpp @@ -438,6 +438,7 @@ struct STranslatorDataModelParser #define Material_TranslucentFalloff m_Material.m_TranslucentFalloff #define Material_DiffuseLightWrap m_Material.m_DiffuseLightWrap #define Material_ReferencedMaterial m_ReferencedMaterial.m_ReferencedMaterial +#define Material_VertexColors m_Material.m_VertexColors #define Image_ImagePath m_Asset.m_SourcePath #define Image_OffscreenRendererId m_Image.m_SubPresentation #define Image_Scale_X m_Image.m_RepeatU |