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

Allow colour changing

parent 7d89868c
No related branches found
No related tags found
1 merge request!185Holoportation blue tint effect
Pipeline #16878 passed
...@@ -611,11 +611,12 @@ bool Triangular::render(ftl::rgbd::VirtualSource *src, ftl::rgbd::Frame &out) { ...@@ -611,11 +611,12 @@ bool Triangular::render(ftl::rgbd::VirtualSource *src, ftl::rgbd::Frame &out) {
if (value("cool_effect", false)) { if (value("cool_effect", false)) {
auto pose = params.m_viewMatrixInverse.getFloat3x3(); auto pose = params.m_viewMatrixInverse.getFloat3x3();
auto col = parseCUDAColour(value("cool_effect_colour", std::string("#2222ff")));
ftl::cuda::cool_blue( ftl::cuda::cool_blue(
out.getTexture<float4>(Channel::Normals), out.getTexture<float4>(Channel::Normals),
out.getTexture<uchar4>(Channel::Colour), out.getTexture<uchar4>(Channel::Colour),
make_uchar4(255,0,0,0), pose, col, pose,
stream_ stream_
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment