Example #1
0
 public UI3DPreview()
 {
     HdriManager.Scan();
     HdriManager.OnHdriLoaded += HdriManager_OnHdriLoaded;
     Camera.OnCameraChanged   += Camera_OnCameraChanged;
     InitializeComponent();
     Instance = this;
     InitGL();
     Console.WriteLine("3d view inited");
 }
Example #2
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");
        }