Revert "Change multisampling count to 0, improved fix/workaround for AMD GPUs (#26)"
NUM_SAMPLES=0 or 1 breaks AMD Radeon R9 M295X on Windows 11, but 2 works.
This reverts commit 748911a91b
.
This commit is contained in:
parent
1854275282
commit
7d41bb838d
|
@ -43,7 +43,7 @@ use std::sync::mpsc;
|
|||
const ATLAS_SIZE: usize = 1024;
|
||||
|
||||
// TEMP
|
||||
const NUM_SAMPLES: i32 = 0;
|
||||
const NUM_SAMPLES: i32 = 2;
|
||||
|
||||
pub struct Camera {
|
||||
pub pos: cgmath::Point3<f64>,
|
||||
|
|
|
@ -15,7 +15,6 @@ void main() {
|
|||
for (int i = 1; i < samples; i++) {
|
||||
col += texelFetch(tcolor, C, i);
|
||||
}
|
||||
if (samples != 0)
|
||||
col /= float(samples);
|
||||
|
||||
float r = accum.a;
|
||||
|
|
Loading…
Reference in New Issue