Skip to content
Snippets Groups Projects
Commit f56a0397 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Add channel blending

parent dec9e8d9
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
......@@ -206,6 +206,9 @@ bool OpenVRRender::retrieve(ftl::data::Frame &frame_out) {
left = ftl::rgbd::Camera::from(intrinsics_);
right = ftl::rgbd::Camera::from(intrinsics_);
left.baseline = baseline_;
right.baseline = baseline_;
unsigned int size_x, size_y;
HMD->GetRecommendedRenderTargetSize(&size_x, &size_y);
left.width = size_x;
......
......@@ -138,6 +138,12 @@ bool ScreenRender::retrieve(ftl::data::Frame &frame_out) {
if (!data_only) renderer_->render();
// Blend another channel
int blend_channel = host_->value("blend_channel",0);
if (blend_channel > 0) {
if (!data_only) renderer_->blend(static_cast<Channel>(blend_channel));
}
// Now do CPU-based render jobs
for (auto &s : sets) {
if (s->frameset() == my_id_) continue; // Skip self
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment