private void updateMaterialTextureType(final Statement statement, final VariableMapping mapping,
                                           final ShaderNodeVariable left, final MatParam param) throws MatParseException {

        if (!mapping.getRightVariable().getType().contains("|")) {
            return;
        }

        final String type = fixSamplerType(left.getType(), mapping.getRightVariable().getType());

        if (type != null) {
            mapping.getRightVariable().setType(type);
        } else {
            throw new MatParseException(param.getVarType().toString() + " can only be matched to one of " +
                    param.getVarType().getGlslType().replaceAll("\\|", ",") + " found " + left.getType(), statement);
        }
    }
Updates the material texture type of the variable mapping.

@param statement the statement.
@param mapping the variable mapping.
@param left the left variable.
@param param the material parameter.
@throws MatParseException if the texture type isn't valid.
jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java