Closed
Description
Hi guys,
the MorphWeights
parameter is a FloatArray
not a Float
.
See PBRLighting.j3md
// For Morph animation
FloatArray MorphWeights
Int NumberOfMorphTargets
Int NumberOfTargetsBuffers
Its representation in the Options tab of the Material Editor is wrong.
The problem should be caused by the incorrect defLine.startsWith(string)
and defLine.replaceFirst()
algorithm when string = "Float"
and defLine starts with FloatArray
:
private static final String[] variableTypes = new String[]{
"Int",
"Boolean",
"Float",
"Vector2",
"Vector3",
"Vector4",
"Color",
"Texture2D",
"Texture3D",
"TextureArray",
"TextureBuffer",
"TextureCubeMap" };
for (String string : variableTypes) {
if (defLine.startsWith(string)) {
final String propName = MaterialUtils.trimName(defLine.replaceFirst(string, ""));
matDefEntries.add(propName);
...
}
}
Output:
MaterialProperty [type=Float, name=Array ShadowMapSize, value=]
Metadata
Metadata
Assignees
Labels
No labels