public void setParam(String name, VarType type, Object value) {
        checkSetParam(type, name);

        if (type.isTextureType()) {
            setTextureParam(name, type, (Texture)value);
        } else {
            MatParam val = getParam(name);
            if (val == null) {
                paramValues.put(name, new MatParam(type, name, value));
            } else {
                val.setValue(value);
            }

            if (technique != null) {
                technique.notifyParamChanged(name, type, value);
            }
            if (type.isImageType()) {
                // recompute sort id
                sortingId = -1;
            }
        }
    }
Pass a parameter to the material shader.

@param name the name of the parameter defined in the material definition (.j3md)
@param type the type of the parameter {@link VarType}
@param value the value of the parameter
jme3-core/src/main/java/com/jme3/material/Material.java