Beispiel #1
0
        public void SCNView_TechniqueSetterTest()
        {
            SCNView      v = new SCNView(new CGRect(), (NSDictionary)null);
            SCNTechnique t = SCNTechnique.Create(new NSDictionary());

            v.Technique = t;
        }
        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");
        }