modify shadow map rendering to command.