Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 841 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 841 Bytes

OpenGL 3D Engine

Installation

Dependencies

Install Dependencies with vcpkg In case you don't have vcpkg installed, you can install it from here and add vcpkg to your PATH. Then navigate to the root directory and run the following command to install the dependencies.

$ vcpkg x-update-baseline
$ vcpkg install

3D Model

Initialize models before enter render loop

model3D = Model();
model3D.LoadModel("models/scene.obj");

Render models in ObjectRenderer(const Shader * shader)

model = translate(model, vec3(0.0f, -10.0f, 5.0f));
model = scale(model, vec3(50.0f, 50.0f, 50.0f));
shader->SetModel(model);
shinyMaterial.UseMaterial(uniformSpecularMaterial, uniformDiffuseMaterial, uniformAmbientMaterial, uniformShininess);
model3D.RenderModel(*shader);