summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsuippresentation.cpp
diff options
context:
space:
mode:
authorJere Tuliniemi <jere.tuliniemi@qt.io>2018-10-22 14:18:24 +0300
committerJere Tuliniemi <jere.tuliniemi@qt.io>2019-01-15 12:14:07 +0000
commit0cf63f1de93635c85fc3120cdfce3410a59edc9b (patch)
tree30ea4185da967d19e2c33298698fb6deadfec1d4 /src/runtime/q3dsuippresentation.cpp
parent7c203cb04362c246c709285d583052ec1358e7de (diff)
Enable vertex shaders in custom materials
If <VertexShader> tags in custom material contain a main function, use the shaders provided as is. The shader generator adds } to the end of the fully custom fragment shaders so I left that also to the vertex shader generation. Custom attributes can be provided with a user-generated .mesh file. The test scene has a sphere with the normal attr_pos and a sphere with an attr_pos2 instead. "simple-pos.material" expects an attr_pos vertex attribute and "simple-pos2.material" an attr_pos2. Task-number: QT3DS-2026 Change-Id: I2c0cd1c079f9c741900f119aefd2e3515d42f36d Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/runtime/q3dsuippresentation.cpp')
0 files changed, 0 insertions, 0 deletions