Пример #1
0
 public UI3DPreview()
 {
     InitializeComponent();
     Console.WriteLine("3d view inited");
     Instance = this;
     InitGL();
 }
Пример #2
0
 public UI3DPreview()
 {
     HdriManager.Scan();
     HdriManager.OnHdriLoaded += HdriManager_OnHdriLoaded;
     Camera.OnCameraChanged   += Camera_OnCameraChanged;
     InitializeComponent();
     Instance = this;
     InitGL();
     Console.WriteLine("3d view inited");
 }
Пример #3
0
        public UI3DPreview()
        {
            HdriManager.Scan();
            HdriManager.OnHdriLoaded += HdriManager_OnHdriLoaded;
            InitializeComponent();
            previewRenderMode = PreviewRenderMode.FullShading;
            Instance          = this;

            materialSettings = new MaterialSettings();
            materialSettings.Load();
            materialSettings.OnMaterialUpdated += MaterialSettings_OnMaterialUpdated;

            lightSettings = new LightingSettings();
            lightSettings.OnLightingUpdated += LightSettings_OnLightingUpdated;

            InitGL();
            Log.Info("3d view inited");
        }