d4f5f8eb50
We have normal maps working wew. Now I just need to clean up the code.
2022-08-02 15:13:07 +01:00
2eabd78ed5
Changed how we track a models position.
...
In learning more about linear algebra I've figured out that if we have
the model matrix of an object, for the most part the objects position is
0,0,0 multiplied through the model matrix.
2022-07-26 11:33:33 +01:00
cd382435a8
Added method to load normal maps and moved pbr to it's own function
2022-07-25 13:43:58 +01:00
2cd954dc9a
PBR is now implemented
2022-07-25 13:22:42 +01:00
4ee8d24f18
Added roughness
2022-07-25 10:56:58 +01:00
1e5544ce1f
Almost got metallisism working I just don't know what's up with the textures again.
2022-07-19 14:58:02 +01:00
a0819a4e98
Added the camera position and the models position to pbr shader
2022-07-18 14:17:08 +01:00
3700494d84
Rotation added to model (whole system is currently dirty)
2022-06-16 14:23:12 +01:00
1f6079dd25
added ability to resize models so I don't have to tinker with gun model.
2022-06-16 14:04:18 +01:00
cf964bf235
Unload textures when model is deleted, and remove warnings.
2022-06-14 14:34:30 +01:00
16dd10f252
Allowed user to quite the program with the escape key.
2022-06-13 13:25:04 +01:00
3dd235397a
Actually added textures to loaded texture buffer so we can skip loading already loaded texetures.
2022-06-09 13:47:55 +01:00
18a785613d
The engine can now import models with textures but bugs.
...
More complex models have a bug where the same textures are potentially
being loaded too many times.
2022-05-31 14:43:44 +01:00
037233ddf2
fixed filename issue, (WARNING next bug may brick machine)
2022-04-29 16:40:03 +01:00
685aafd45f
Fixed being stuck in an infinite loop whilst loading model indecies
2022-04-29 16:28:16 +01:00
753ec9c857
Attempted to follow this tutorial to add model loading.
...
https://learnopengl.com/Model-Loading/Model
Currently getting an error from assimp claiming it's missing data from
the example model.
2022-04-29 15:03:35 +01:00
644ac26403
Imported tool for loading models
2022-04-29 12:30:41 +01:00
fd0acf3dde
Models now heve their own relative position (needs optimiseation)
2022-04-22 12:43:51 +01:00
9fcc98fdf4
Added model class with the ability to hold multiple models.
2022-04-21 14:15:02 +01:00