Use sRGB
Anti-aliasing works better this way
This commit is contained in:
parent
3ab86973cc
commit
3d7460ac14
|
|
@ -106,10 +106,10 @@ pub fn build() -> Vec<FancyLine> {
|
|||
);
|
||||
|
||||
let mut gc = vec![];
|
||||
paint(&mut gc, vec3(0.8, 0.8, 0.8), tube.render());
|
||||
paint(&mut gc, vec3(0.0, 0.8, 1.0), draw_fan_2(&space, cam3, 1.0));
|
||||
paint(&mut gc, vec3(0.5, 1.0, 0.0), draw_fan_2(&space, cam2, 1.0));
|
||||
paint(&mut gc, vec3(1.0, 0.5, 0.0), draw_fan_2(&space, cam1, 1.0));
|
||||
paint(&mut gc, vec3(0.6, 0.6, 0.6), tube.render());
|
||||
paint(&mut gc, vec3(0.0, 0.6, 1.0), draw_fan_2(&space, cam3, 1.0));
|
||||
paint(&mut gc, vec3(0.2, 1.0, 0.0), draw_fan_2(&space, cam2, 1.0));
|
||||
paint(&mut gc, vec3(1.0, 0.2, 0.0), draw_fan_2(&space, cam1, 1.0));
|
||||
gc
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ impl<'a> Viewport<'a> {
|
|||
size: UVec2,
|
||||
) -> Self {
|
||||
let caps = surface.get_capabilities(adapter);
|
||||
let format = wgpu::TextureFormat::Bgra8Unorm;
|
||||
let format = wgpu::TextureFormat::Bgra8UnormSrgb;
|
||||
let sample_count = adapter
|
||||
.get_texture_format_features(format)
|
||||
.flags
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user