예제 #1
0
        private void RenderBasePass()
        {
            if (PostConstructor)
            {
                DefaultTexture  = ProxyTextureLoader.LoadSingleTexture(System.Environment.CurrentDirectory + "\\..\\..\\Textures\\default.jpg");
                DefaultShader   = new BasicShader(System.Environment.CurrentDirectory + "/../../Shaders/basicVS.glsl", "../../Shaders/basicFS.glsl");
                PostConstructor = false;
            }

            if (actor != null)
            {
                actor.Render(EditorCamera.ViewMatrix, projectionMatrix);
            }

            skybox.Render(EditorCamera.ViewMatrix, projectionMatrix);
        }
예제 #2
0
        private void RenderBasePass()
        {
            if (PostConstructor)
            {
                CollisionBoxModel = new RawModel(ProxyModelLoader.LoadModel(CollisionBoxPath));
                DefaultTexture    = ProxyTextureLoader.LoadSingleTexture(ProjectFolders.TextureAtlasPath + "\\default.jpg");
                DefaultShader     = new BasicShader(ProjectFolders.ShadersPath + "\\basicVS.glsl", ProjectFolders.ShadersPath + "\\basicFS.glsl");
                PostConstructor   = false;
            }

            if (actor != null && !bComponentHierarchyIsDirty)
            {
                actor.Render(EditorCamera.ViewMatrix, projectionMatrix);
            }

            skybox.Render(EditorCamera.ViewMatrix, projectionMatrix);
        }
예제 #3
0
 public void SetTexture(string texturePath)
 {
     actor.SetTexture(ProxyTextureLoader.LoadSingleTexture(texturePath));
 }