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); }
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); }
public void SetTexture(string texturePath) { actor.SetTexture(ProxyTextureLoader.LoadSingleTexture(texturePath)); }