public Skybox(RenderContext rc) { // load texture imgData = rc.LoadImage("Assets/skyboxOberflächenfarbe.jpg"); _iTex = rc.CreateTexture(imgData); _rc = rc; _syboxMesh = MeshReader.LoadMesh(@"Assets/skybox.obj.model"); }
protected internal override void AttachToContext(RenderContext rc) { if (RContext == rc) return; if (ImgSrc != null) { var imgData = rc.LoadImage(ImgSrc); GUITexture = rc.CreateTexture(imgData); CreateGUIShader(); } base.AttachToContext(rc); }