Commit graph

18 commits

Author SHA1 Message Date
157adf0dfa Normal is now mapped correctly but the light's position is in the wrong
position
2022-07-29 13:21:07 +01:00
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