Commit graph

26 commits

Author SHA1 Message Date
b1c966b47d Adding a limit to the number of primitves exiting my geometry shader
stops the shape from breaking...
2022-07-29 13:01:01 +01:00
ecf7929152 I think I'm close to inserting and using the TBN correctly. 2022-07-27 16:31:38 +01:00
5b1aba34df Added geometry shader to pipeline so I can calculate normal data on the GPU 2022-07-27 14:30:24 +01:00
532382b1f9 not correct way of using normal maps but gives me some preliminary info. 2022-07-26 15:27:17 +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
811e949def Fixed pbr issue by re reading and implementing https://learnopengl.com/PBR/Lighting 2022-07-25 14:00:19 +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
58eb18354c Got metal to work 2022-07-22 15:02:42 +01:00
3d3aaa3c3c Solved multiple texture loading problem. 2022-07-20 16:30:40 +01:00
40f12dd510 Added the ability to use renderdoc and warn when uniforms unavailable 2022-07-20 16:26:40 +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
7e3a7f0df7 Added assimp version requirement as default debian version doesn't support pbr by defualt 2022-07-18 15:41:49 +01:00
187936bea6 Added time variable to shader to see difference in different values 2022-07-18 14:36:08 +01:00
a0819a4e98 Added the camera position and the models position to pbr shader 2022-07-18 14:17:08 +01:00
b4fda4612c Re-rendered same scene with hard coded values pbr code from https://learnopengl.com/PBR/Lighting 2022-06-16 15:14:53 +01:00
8ef9ef72ca Added pbr compatible model to be rendered 2022-06-16 13:36:48 +01:00
a91fc3d57d Added diffuse lighting 2022-06-13 14:07:55 +01:00
9e5514e5ba Fixed the texture issue. The texture was upside down. 2022-06-09 15:01:30 +01:00
a33ff9d029 Added test cube for model loading, discovered vertices are alright it appears to be an issue with the textures. 2022-05-17 15:07:40 +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
fd0acf3dde Models now heve their own relative position (needs optimiseation) 2022-04-22 12:43:51 +01:00
bd85989d95
We can now render multiple meshes. 2022-02-22 17:41:12 +00:00
f364da6272
Finally shifted the camera. Now to move it to the camera class. 2022-01-24 15:18:44 +00:00
928efe501c The data files are now installed with the game 2021-05-19 18:01:52 +01:00