Шейдер с учетом mvp

This commit is contained in:
2022-12-15 13:45:11 +03:00
parent 795aac516d
commit e64d62b56f
6 changed files with 25 additions and 9 deletions

View File

@@ -59,12 +59,12 @@ class Model : public Node
Model& operator=(const Model& other); // Оператор присваивания
virtual ~Model();
void render(); // Вызов отрисовки
void render(const GLuint &model_uniform); // Вызов отрисовки
void load_verteces(glm::vec3* verteces, GLuint count); // Загрузка вершин в буфер
void load_indices(GLuint* indices, GLuint count); // Загрузка индексов в буфер
void set_index_range(size_t first_byteOffset, size_t count); // Ограничение диапазона из буфера индексов
private:
VAO vao;
BO vertex_vbo, index_vbo; // вершинный и индексный буферы

View File

@@ -14,7 +14,7 @@ class Scene
Scene(const Scene &copy); // Конструктор копирования
Scene& operator=(const Scene& other); // Оператор присваивания
void render(); // Рендер сцены
void render(const GLuint &model_uniform); // Рендер сцены
Node root; // Корневой узел