- // if auto-reflect is set for updating every nth frame,
- // and this is not one of them, skip it.
- if(mat->auto_refl_upd > 1 && frame_count % mat->auto_refl_upd) {
- continue;
- }
-
- // if auto-reflect is set to update only during the first frame,
- // and this is not the first frame, skip it.
- if(mat->auto_refl_upd == 0 && !first_render) {
- continue;
- }
-