public void set(int id, boolean val) {
        if (val) {
            set(id, 1);
        } else {
            // Because #ifdef usage is very common in shaders, unset the define
            // instead of setting it to 0 for booleans.
            unset(id);
        }
    }
The new define list.

@author Kirill Vainer
jme3-core/src/main/java/com/jme3/shader/DefineList.java