void SetupTechniques()
        {
            // The scene can be de-saturarted as a full screen effect.
            NSUrl        url     = NSBundle.MainBundle.GetUrlForResource("art.scnassets/techniques/desaturation", "plist");
            NSDictionary options = NSDictionary.FromUrl(url);

            desaturationTechnique = SCNTechnique.Create(options);
            desaturationTechnique.SetValueForKey(new NSNumber(0.0), (NSString)"Saturation");
        }
        void SetPostGameFilters()
        {
            SCNTransaction.Begin();

            desaturationTechnique.SetValueForKey(new NSNumber(1.0), (NSString)"Saturation");
            SCNTransaction.AnimationDuration = 1.0;

            SCNTransaction.Commit();

            SharedAppDelegate appDelegate = SharedAppDelegate.AppDelegate;

            appDelegate.Scene.Technique = desaturationTechnique;
        }
Beispiel #3
0
		void SetupTechniques ()
		{
			// The scene can be de-saturarted as a full screen effect.
			NSUrl url = NSBundle.MainBundle.GetUrlForResource ("art.scnassets/techniques/desaturation", "plist");
			NSDictionary options = NSDictionary.FromUrl (url);
			desaturationTechnique = SCNTechnique.Create (options);
			desaturationTechnique.SetValueForKey (new NSNumber (0.0), (NSString)"Saturation");
		}