Skip to content

Commit

Permalink
[Visualization] Enable anti-aliasing
Browse files Browse the repository at this point in the history
Enable 8x multisampled anti-aliasing, to improve the appearance of the
spectrum on non-Retina/HiDPI displays. It can't really hurt on HiDPI,
either. Hopefully this won't cause it to use a whole load of GPU
resources, more than is reasonable.

Signed-off-by: Christopher Snowhill <[email protected]>
  • Loading branch information
kode54 committed May 22, 2022
1 parent 79ac1e0 commit e2d7ebd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Visualization/SpectrumView.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ - (void)setup {
SCNScene *theScene = [SCNScene sceneNamed:@"Scenes.scnassets/Spectrum.scn"];
[self setScene:theScene];

[self setAntialiasingMode:SCNAntialiasingModeMultisampling8X];

SCNNode *rootNode = [[self scene] rootNode];
SCNNode *cameraNode = [rootNode childNodeWithName:@"camera" recursively:NO];
cameraPosition2d = SCNVector3Make(0.0, 0.5, 1.0);
Expand Down

0 comments on commit e2d7ebd

Please sign in to comment.