world previews demo
This commit is contained in:
@@ -40,3 +40,11 @@ void PostProcessing::render(const GfxContext& context, Shader* screenShader) {
|
||||
fbo->getTexture()->bind();
|
||||
quadMesh->draw();
|
||||
}
|
||||
|
||||
std::unique_ptr<ImageData> PostProcessing::toImage() {
|
||||
return fbo->getTexture()->readData();
|
||||
}
|
||||
|
||||
Framebuffer* PostProcessing::getFramebuffer() const {
|
||||
return fbo.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user