Try waiting for one frame before capturing the image: https://github.com/godotengine/godot-demo-projects/blob/master/viewport/screen_capture/screen_capture.gd Author msc509 commented on Jan 3, 2021 Try waiting for one frame before capturing the image: https://github.com/godotengine/godot-demo...
开发者ID:AwsomeGameEngine,项目名称:godot,代码行数:32,代码来源:camera.cpp 示例2: viewport ▲点赞 7▼ voidLifeForm::handle_event(constSDL_Event &event) {autoworld = m_world.lock();if(!world) {return; }if(event.type == SDL_MOUSEBUTTONDOWN) {if(event.button.button == SDL_BUTTON_LEFT)...