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