diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2014-06-19 11:07:57 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2014-06-27 20:49:57 +0200 |
commit | c1000dccda160cc05df618b0648040956401e0dc (patch) | |
tree | ab58c6aa16cfe5619fca37a32f67dff931e2b655 /src/render/io/gltfparser.cpp | |
parent | 8350ca16f7de7e99f1d4416f8555ef6e5cd68c37 (diff) |
Cleanup of Parameter
A Parameter is now used only for user specified uniforms. For StandardUniforms
and Attributes we could rely on the ParameterBinder. In case a mesh attribute
or standard uniform doesn't have the default name used by Qt3D shaders (that
will have to be specified somewhere), a ParameterBinder could be added to
solve that issue. Will see how that goes in a follow up patch.
Change-Id: I41bd0d4ef2ac731c109f87fca5b28571074bfba5
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/io/gltfparser.cpp')
-rw-r--r-- | src/render/io/gltfparser.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/render/io/gltfparser.cpp b/src/render/io/gltfparser.cpp index 8a0796f1e..0728ff05e 100644 --- a/src/render/io/gltfparser.cpp +++ b/src/render/io/gltfparser.cpp @@ -799,14 +799,14 @@ void GLTFParser::processJSONTechnique( QString id, QJsonObject jsonObj ) // But a string Parameter* p = new Parameter(t, pname, parseType(po.value(KEY_TYPE).toString().toUtf8())); Parameter::StandardUniform su = parseSemanticName(semantic.toUtf8()); - if (su != Parameter::None) { - p->setStandardUniform(su); - } else { - // should really verify it's an attribute parameter? - // but what would be the way to do that? - // check the accessor dict? - p->setMeshAttributeName(semantic); - } +// if (su != Parameter::None) { +// p->setStandardUniform(su); +// } else { +// // should really verify it's an attribute parameter? +// // but what would be the way to do that? +// // check the accessor dict? +// p->setMeshAttributeName(semantic); +// } t->addParameter(p); |