private void applyOverrides(DefineList defineList, SafeArrayList<MatParamOverride> overrides) {
        for (MatParamOverride override : overrides.getArray()) {
            if (!override.isEnabled()) {
                continue;
            }
            Integer defineId = def.getShaderParamDefineId(override.name);
            if (defineId != null) {
                if (def.getDefineIdType(defineId) == override.type) {
                    defineList.set(defineId, override.type, override.value);
                }
            }
        }
    }
Called by the material to tell the technique that it has been made
current.
The technique updates dynamic defines based on the
currently set material parameters.
jme3-core/src/main/java/com/jme3/material/Technique.java