Added pbr compatible model to be rendered

This commit is contained in:
Warwick 2022-06-16 13:36:48 +01:00
parent a89a5745ea
commit 8ef9ef72ca
12 changed files with 31 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,28 @@
This asset is provided as is, for purely non-commercial, educational purposes. If this can help anyone make kickass(-er) art I couldn't be happier.
Please note that this is predominantly an example of PBR material work, thus such things as functionality, topology and mesh optimization might be
somewhat overlooked.
Now go make something pretty! :D->-<
Cheers,
Andrew Maximov
More PBR Tutorials:
http://www.ArtIsAVerb.info/PBR.html
http://www.ArtIsAVerb.info/PBT.html
Cerberus Videos:
https://www.youtube.com/watch?v=xIHiXnMltDg
https://www.youtube.com/watch?v=cCYVLkG3hjI
Other art, info and tutorials here:
https://www.facebook.com/ArtIsAVerb
http://www.youtube.com/user/d1v3rsion
http://d1ver.cghub.com/
http://d1ver.cgsociety.org/
http://www.ArtIsAVerb.info/
Make sure to subscribe for all the upcoming stuff! :)
2014, All Rights Reserved.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 MiB

Binary file not shown.

Binary file not shown.

View file

@ -72,7 +72,9 @@ int main(int argc, char **argv) {
Model backpack(std::string(ROOT_DIR) + Model backpack(std::string(ROOT_DIR) +
std::string("data/models/backpack/backpack.obj")); std::string("data/models/backpack/backpack.obj"));
Model cube(ROOT_DIR "data/models/cube/cube.obj"); Model cube(ROOT_DIR "data/models/cube/cube.obj");
Model gun(ROOT_DIR "data/models/gun/Cerberus_LP.FBX");
cube.translate(glm::vec3(3.0f, 0.0f, -1.0f)); cube.translate(glm::vec3(3.0f, 0.0f, -1.0f));
gun.translate(glm::vec3(-3.0f, 0.0f, 0.0f));
// Create player camera object // Create player camera object
PlayerCamera camera; PlayerCamera camera;
@ -116,6 +118,7 @@ int main(int argc, char **argv) {
// Draw Meshes // Draw Meshes
cube.draw(shader); cube.draw(shader);
backpack.draw(shader); backpack.draw(shader);
gun.draw(shader);
// Finally render everything // Finally render everything
shader.use(); shader.use();