final void notifyTechniqueSwitched() {
        ListMap<String, MatParam> paramMap = owner.getParamsMap();
        paramDefines.clear();
        for (int i = 0; i < paramMap.size(); i++) {
            MatParam param = paramMap.getValue(i);
            notifyParamChanged(param.getName(), param.getVarType(), param.getValue());
        }
    }
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