Шейдер с учетом mvp
This commit is contained in:
@@ -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; // вершинный и индексный буферы
|
||||
|
||||
@@ -14,7 +14,7 @@ class Scene
|
||||
Scene(const Scene ©); // Конструктор копирования
|
||||
Scene& operator=(const Scene& other); // Оператор присваивания
|
||||
|
||||
void render(); // Рендер сцены
|
||||
void render(const GLuint &model_uniform); // Рендер сцены
|
||||
|
||||
Node root; // Корневой узел
|
||||
|
||||
|
||||
Reference in New Issue
Block a user