mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
world previews demo
This commit is contained in:
parent
5afa5304ff
commit
6e2bc9ca95
24 changed files with 153 additions and 59 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue