Esempio n. 1
0
        public override void OnNodeCreated()
        {
            base.OnNodeCreated();
            settings    = defaultSettings;
            previewMode = defaultPreviewChannels;

            // Patch up inheritance mode with default value in graph
            onEnabled += () => settings.SyncInheritanceMode(graph.defaultNodeInheritanceMode);
        }
Esempio n. 2
0
 static Vector4 GetChannelsMask(PreviewChannels channels)
 {
     return(new Vector4(
                (channels & PreviewChannels.R) == 0 ? 0 : 1,
                (channels & PreviewChannels.G) == 0 ? 0 : 1,
                (channels & PreviewChannels.B) == 0 ? 0 : 1,
                (channels & PreviewChannels.A) == 0 ? 0 : 1
                ));
 }
Esempio n. 3
0
 public override void OnNodeCreated()
 {
     base.OnNodeCreated();
     rtSettings  = defaultRTSettings;
     previewMode = defaultPreviewChannels;
 }