[Visualization] Enable anti-aliasing
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 <kode54@gmail.com>swiftingly
parent
79ac1e0dd6
commit
e2d7ebdec5
|
@ -126,6 +126,8 @@ extern NSString *CogPlaybackDidStopNotficiation;
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue