private VarType getVarType(Object value) {
        if (value instanceof Float) return VarType.Float;
        if (value instanceof Integer) return VarType.Int;
        if (value instanceof Boolean) return VarType.Boolean;
        if (value instanceof ColorRGBA) return VarType.Vector4;
        if (value instanceof Vector4f) return VarType.Vector4;
        if (value instanceof Vector3f) return VarType.Vector3;
        if (value instanceof Vector2f) return VarType.Vector2;
        if (value instanceof Matrix3f) return VarType.Matrix3;
        if (value instanceof Matrix4f) return VarType.Matrix4;
        if (value instanceof String) return VarType.Boolean;
        throw new AssetLoadException("Unsupported material parameter type : " + value.getClass().getSimpleName());
    }
Initializes material parameters to their default settings.

@param material
jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/MaterialAdapter.java