Skip to content
Snippets Groups Projects

Implements #189 using density to estimate radius

Merged Nicolas Pope requested to merge feature/189/splatradius into master
3 files
+ 16
5
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -259,6 +259,7 @@ void Splatter::_renderChannel(
@@ -259,6 +259,7 @@ void Splatter::_renderChannel(
if (is_4chan) {
if (is_4chan) {
ftl::cuda::splat(
ftl::cuda::splat(
accum_.getTexture<float4>(Channel::Normals),
accum_.getTexture<float4>(Channel::Normals),
 
accum_.getTexture<float>(Channel::Density),
accum_.getTexture<float4>(channel_out),
accum_.getTexture<float4>(channel_out),
temp_.getTexture<int>(Channel::Depth2),
temp_.getTexture<int>(Channel::Depth2),
out.createTexture<float>(Channel::Depth),
out.createTexture<float>(Channel::Depth),
@@ -268,6 +269,7 @@ void Splatter::_renderChannel(
@@ -268,6 +269,7 @@ void Splatter::_renderChannel(
} else if (is_float) {
} else if (is_float) {
ftl::cuda::splat(
ftl::cuda::splat(
accum_.getTexture<float4>(Channel::Normals),
accum_.getTexture<float4>(Channel::Normals),
 
accum_.getTexture<float>(Channel::Density),
accum_.getTexture<float>(channel_out),
accum_.getTexture<float>(channel_out),
temp_.getTexture<int>(Channel::Depth2),
temp_.getTexture<int>(Channel::Depth2),
out.createTexture<float>(Channel::Depth),
out.createTexture<float>(Channel::Depth),
@@ -277,6 +279,7 @@ void Splatter::_renderChannel(
@@ -277,6 +279,7 @@ void Splatter::_renderChannel(
} else {
} else {
ftl::cuda::splat(
ftl::cuda::splat(
accum_.getTexture<float4>(Channel::Normals),
accum_.getTexture<float4>(Channel::Normals),
 
accum_.getTexture<float>(Channel::Density),
accum_.getTexture<uchar4>(channel_out),
accum_.getTexture<uchar4>(channel_out),
temp_.getTexture<int>(Channel::Depth2),
temp_.getTexture<int>(Channel::Depth2),
out.createTexture<float>(Channel::Depth),
out.createTexture<float>(Channel::Depth),
Loading