コード例 #1
0
 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");
 }
コード例 #2
0
        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);
        }