public void updateVarFromAttributes(ShaderNodeVariable right, VariableMapping mapping) {
        DeclaredVariable dv = attributes.get(right.getName());
        if (dv == null) {
            dv = new DeclaredVariable(right);
            attributes.put(right.getName(), dv);
            updateRightTypeFromLeftType(mapping);
        } else {
            mapping.setRightVariable(dv.var);
        }
        dv.addNode(shaderNode);
    }
Updates a variable from the attribute list.

@param right the variable
@param mapping the mapping
jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java