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:
ice_iix 2018-11-19 17:44:06 -08:00
parent 1854275282
commit 7d41bb838d
2 changed files with 1 additions and 2 deletions

View File

@ -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>,

View File

@ -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;