Commit Graph

563 Commits

Author SHA1 Message Date
Joey de Vries
d57df39bf5 Add source code for DSA guest chapter. 2022-01-11 14:15:04 +01:00
Joey de Vries
2b578f8d69 Add source code for tessellation guest chapters. 2022-01-11 13:51:04 +01:00
Joey de Vries
0f3d3160bb Merge pull request #262 from pattakosn/master
fix compiler/linker warning messages
2022-01-11 11:28:37 +01:00
Joey de Vries
b353a9b679 Merge pull request #263 from azisyus/master
fix texture coordinate
2022-01-10 12:34:19 +01:00
can
29f1c099ac fix texture coordinate 2022-01-10 14:16:44 +03: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
1be7d8ab3e update list of packages required to build on debian and ubuntu in Readme file 2022-01-08 00:21:34 +01:00
N. Pattakos
da279c2fd9 fix warning LNK4099
added linker option to silence VS warning LNK4099.
Again, ignoring this message is not the Right Thing to do, but in my opinion is good enough for this project and better than having a ton of warning messages hiding potentially useful ones.
2022-01-08 00:21:29 +01:00
N. Pattakos
72f3e37150 fix narrowing conversions (eg double to float, size_t to GLsizei) 2022-01-08 00:20:26 +01:00
N. Pattakos
47a6664845 fix warning: getenv not secure
Just silence the warning. Yes, the Right Thing to do would be to use the newer and safer ways instead of getenv, but silencing it is simpler and suffices for this project's needs :)
2022-01-08 00:20:23 +01:00
N. Pattakos
2ad7b99766 fix warnings: "cl : Command line warning D9002 : ignoring unknown option"
They were caused by the VS compiler not understanding the "-std=c++11" option.
The old style CMake way of setting C++11 version was replaced with the new one which is crossplatform/compiler and fixes the warning.
2022-01-08 00:18:33 +01:00
N. Pattakos
76b3e85352 fix unused exception parameter: print it in exception message 2022-01-07 23:09:38 +01:00
Joey de Vries
b49ea10348 Fix correct shader names skeletal animation. 2021-11-23 14:01:54 +01:00
Joey de Vries
a6a16e3565 Merge pull request #255 from SnowyLake/master
Fix glBufferDelete() argument mistake in cubemaps_skybox.cpp
2021-11-09 11:05:52 +01:00
SnowyLake
31c2cf3a9a bugfix: In cubemaps_skybox.cpp, the second argument to glBufferDelete() should be &SkyboxVBO instead of &SkyboxVAO 2021-11-09 17:26:20 +08:00
Joey de Vries
2c8bf91c50 Merge pull request #254 from jiannanya/fix_mesh.h_comments
fix comments in mesh.h
2021-10-29 10:22:48 +02:00
Jiannanya
23cd2123f0 fix comments in mesh.h
stream->string
2021-10-29 10:02:58 +08:00
Joey de Vries
279e6be7fa Merge pull request #251 from BhayanakMoth/fix-ambient
Corrected ambient lighting calculation
2021-10-18 10:24:26 +02:00
Nipun Ramani
89f3a18dd0 Corrected ambient lighting calculation 2021-10-17 18:30:59 +05:30
Joey de Vries
a11954e474 Merge pull request #249 from arbmarton/csm_update
Simplified CSM code, removed some comments.
2021-10-08 09:54:57 +02:00
arby
c7102b1d9b Simplified CSM code, removed some comments. 2021-10-07 23:28:51 +02:00
Joey de Vries
6f03f5a959 Another source code update on skeletal animation article. 2021-09-10 17:09:29 +02:00
Joey de Vries
a051a65d80 Updated source code files of skeletal animation guest article. 2021-09-08 20:43:58 +02:00
Joey de Vries
0ce49088e5 Add source code for the cascaded shadow mapping guest article. 2021-09-08 19:06:07 +02:00
Joey de Vries
54dd372518 Add source files for scene (graph + frustum culling) guest article. 2021-09-02 15:27:27 +02:00
Joey de Vries
0d538f002d Use numerator instead of nominator (re-applied previous commit). 2021-09-01 12:43:10 +02:00
Joey de Vries
2ef9c55f16 Merge branch 'master' of https://github.com/JoeyDeVries/LearnOpenGL
# Conflicts:
#	src/6.pbr/1.1.lighting/1.1.pbr.fs
#	src/6.pbr/1.2.lighting_textured/1.2.pbr.fs
#	src/6.pbr/2.1.1.ibl_irradiance_conversion/2.1.1.pbr.fs
#	src/6.pbr/2.1.2.ibl_irradiance/2.1.2.pbr.fs
#	src/6.pbr/2.2.1.ibl_specular/2.2.1.pbr.fs
#	src/6.pbr/2.2.2.ibl_specular_textured/2.2.2.pbr.fs
2021-09-01 12:42:27 +02: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
bad2db3fe5 Merge pull request #247 from JelleVos1/patch-1
Update textures.cpp
2021-09-01 11:18:14 +02:00
Jelle Vos
c85067d4fe Update textures.cpp
On line 109 glGenerateMipmap is getting called but the GL_TEXTURE_MIN_FILTER uses GL_LINEAR. Changed it to GL_LINEAR_MIPMAP_LINEAR
2021-08-28 19:04:33 +02:00
Joey de Vries
48010de993 Merge pull request #245 from cyaneko/patch-1
Fix a minor bug in rear view mirror
2021-08-20 15:06:35 +02:00
cyaneko
b7a196ba4a Fix a minor bug in rear view mirror
Rotating both the Yaw and Pitch would cause the mirror to display whatever was in front but with Pitch * -1, this fixes this behaviour. Tested.
2021-08-19 21:10:57 +02:00
Joey de Vries
e48244d8b6 Merge pull request #234 from gonnavis/master
Fix typo: nominator to numerator.
2021-05-27 15:03:43 +02:00
Joey de Vries
bbf73afc30 Merge pull request #233 from lasagnaphil/master
Fix bug: glDisable(GL_DEPTH) -> glDisable(GL_DEPTH_TEST)
2021-05-27 15:02:24 +02:00
gonnavis
c976eee7ea Fix typo: nominator to numerator. 2021-05-06 17:26:13 +08:00
Phillip Chang
4dc5862c12 Fix bug: glDisable(GL_DEPTH) -> glDisable(GL_DEPTH_TEST) 2021-05-05 23:46:21 +09:00
Joey de Vries
85ee9d136f Use normalized cross product results for irradiance map generation in PBR tutorials. 2021-04-07 10:00:07 +02:00
Joey de Vries
bc41d2c019 Merge branch 'master' of https://github.com/JoeyDeVries/LearnOpenGL 2021-03-21 13:33:26 +01:00
Joey de Vries
0e424d3710 Add first version weighted blended OIT source code for OIT guest article. 2021-03-21 13:33:22 +01:00
Joey de Vries
8535617490 Merge pull request #222 from kirinzer/patch-1
Update README.md
2021-02-19 09:34:37 +01:00
Haitao Liu
2f21af137a Update README.md 2021-02-19 11:45:06 +08:00
Joey de Vries
c272fd263e Add assimp glm helpers. 2021-02-07 20:37:11 +01:00
Joey de Vries
90f44b65bb Update include files to add appropriate model_animation include. 2021-02-07 19:15:34 +01:00
Joey de Vries
e72d3e05d7 Include cpp skeletal animation tutorial file. 2021-02-07 19:13:14 +01:00
Joey de Vries
01a2962d01 Add model and include files for Ankit's Skeletal Animation tutorial. 2021-02-07 19:11:46 +01:00
Joey de Vries
dfcf5ed149 Add levels to breakout 2D source code. 2021-01-24 10:37:09 +01:00
Joey de Vries
95ed602bd6 Also update hello triangle example. 2021-01-20 16:28:47 +01:00
Joey de Vries
ac661d85f3 Use unsigned ints for shader ids. 2021-01-20 16:22:44 +01:00
Joey de Vries
73ff9934d0 Update PBR lighting chapter to support large DGGX values as 0-clamp was too high. 2020-12-30 09:55:55 +01:00
Joey de Vries
9a46ecf526 Prevent 1.0 - cosTheta from becoming negative due to small FP inaccuracies. This can cause NaNs otherwise. 2020-12-13 13:53:56 +01:00