aboutsummaryrefslogtreecommitdiff
path: root/evc/src/refsampler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'evc/src/refsampler.rs')
-rw-r--r--evc/src/refsampler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/evc/src/refsampler.rs b/evc/src/refsampler.rs
index d6f2bb1..8a8f44f 100644
--- a/evc/src/refsampler.rs
+++ b/evc/src/refsampler.rs
@@ -21,7 +21,7 @@ impl<'a> Sampler<'a> {
#[inline]
pub fn sample(&self, p: Vec2<f32>) -> Pixel {
self.view
- .sample(self.translation + self.transform.transform(p + self.halfsize) - self.halfsize)
+ .sample(self.translation + self.transform.transform(p - self.halfsize) + self.halfsize)
.scale(self.value_scale)
}
pub fn from_refblock(