texRend.enforceStates(enforcedStates);
// draw to texture
if (spatial != null) {
texRend.render(spatial, _texture, Renderer.BUFFER_COLOR_AND_DEPTH);
} else {
texRend.render(spatials, _texture, Renderer.BUFFER_COLOR_AND_DEPTH);
}
texRend.clearEnforcedStates();