Commit Graph

20 Commits

Author SHA1 Message Date
arby
ea40b886f5 Fixed normal calculation in PBR shaders 2023-03-18 14:18:49 +01:00
N. Pattakos
93be6f82ab update merge request as requested by JoeyDeVries: no auto or GLtypes 2022-01-10 00:45:44 +01:00
N. Pattakos
72f3e37150 fix narrowing conversions (eg double to float, size_t to GLsizei) 2022-01-08 00:20:26 +01:00
Joey de Vries
946cbc9118 Fix PBR source code inconsistencies (thanks Andrei!). Also fix winding order sphere and update CMake min. version. 2021-09-01 12:40:43 +02:00
Joey de Vries
37892e5370 Missed a few code files for removing the unnecesasry OS X compile comment. 2020-04-23 11:59:53 +02:00
Joey de Vries
a8499a2668 Fix infinite loop error w/ unsigned ints used on decrementing for counters. 2020-04-22 12:58:38 +02:00
Toni Uhlig
dcdf94fce7 fixed compiler warnings reported by gcc/clang
* changed some catch blocks to use exception references instead of value types
 * fixed missing use of SCR_WIDTH/SCR_HEIGHT for glfwCreateWindow
 * fixed implicit numeric type casts regarding signedness
 * removed unused variables

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2020-03-18 18:34:17 +01:00
Joey de Vries
f4b6763356 Update GLM to latest version (0.9.9.3). This includes GLM's change of matrices no longer default initializing to the identity matrix. This commit thus also includes the update of all of LearnOpenGL's code to reflect this: all matrices are now constructor-initialized to the identity matrix where relevant. 2018-12-30 14:27:14 +01:00
Joey de Vries
d0fc384f29 Merge pull request #104 from d3BugErr/master
Another take on PBR tutorials missing rows and columns
2018-04-10 15:51:48 +02:00
Erik
686797546a Update lighting_textured.cpp
Real fix for missing rows and columns.
2018-04-10 16:47:52 +03:00
Joey de Vries
2e0035a8d4 fix: use radians instead of degrees for camera zoom. 2017-09-21 08:35:13 +02:00
Shivpratap Chauhan
2d16ef0fe2 GLFW hint GLFW_OPENGL_FORWARD_COMPAT is must on osx to create glfw
window successfully
2017-07-12 17:06:00 +05:30
Matthew Taylor
4a94fbf2bf Add commented out code to allow window creation on OSX 2017-06-18 01:53:16 +01:00
Joey de Vries
18e5fdb443 Code/content re-work: getting started. 2017-05-29 23:47:28 +02:00
Joey de Vries
13ad6528cd Final updates on PBR tutorials w/ updated code. 2017-05-28 08:52:26 +02:00
Joey de Vries
b5ea38f87f Update early PBR chapters to conform to new code standard. 2017-05-26 13:18:50 +02:00
Joey de Vries
96ced3c198 PBR attenuation fix with proper Fresnel adjustments. 2017-01-09 19:57:53 +01:00
Joey de Vries
15e7808d55 Adjustments to PBR lighting code. 2016-12-17 21:29:22 +01:00
Joey de Vries
9e2f12aeaa Updated PBR code samples. 2016-12-17 15:58:17 +01:00
Joey de Vries
0a46f53608 Template PBR lighting tut with folder re-structure to fit PBR tuts. 2016-12-12 21:10:58 +01:00