Commit Graph

63 Commits

Author SHA1 Message Date
N. Pattakos
dccf008e4c delete duplicated lines 2022-11-11 00:05:19 +01:00
Joey de Vries
efc34c9437 Fix lerp name ambiguity (need to look into getting rid of using namespace std in header files, for later). 2022-10-01 09:50:20 +02: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
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
72f3e37150 fix narrowing conversions (eg double to float, size_t to GLsizei) 2022-01-08 00:20:26 +01:00
Nipun Ramani
89f3a18dd0 Corrected ambient lighting calculation 2021-10-17 18:30:59 +05:30
Nicholas Blaskey
649f40b01e Renamed sample -> samplePos because sample is a keyword in future glsl versions 2020-10-07 18:13:51 -04:00
Nicholas Blaskey
3ee14a3c2d Removed a duplicate line of setting a uniform 2020-10-05 15:44:30 -04:00
Jane Doe
1ff4bf03c2 treshold -> threshold 2020-10-04 09:40:06 -07:00
Jane Doe
e9467e18ed Mathemtics -> Mathematics 2020-10-04 09:35:17 -07:00
Joey de Vries
bc75e9bae0 Few fixes normal mapping code. 2020-05-26 17:39:54 +02:00
Joey de Vries
42eeb4a01f Fix RGBA issue on Bloom demo as well. 2020-05-26 17:19:39 +02:00
Joey de Vries
9a67877172 Use RGBA over RGB to reduce byte-alignment framebuffer incomplete errors. 2020-05-26 17:15:46 +02:00
Joey de Vries
216a9283c3 Fix deferred and SSAO chapters to now use backpack model (and apprpriate resolution). 2020-05-05 13:59:18 +02:00
Joey de Vries
f36653f736 Source/model tweaks for updated revision. 2020-05-04 10:57:08 +02:00
Joey de Vries
66d51ae668 Update model chapter, and add new backpack model to repo (w/ attribution mention). Also use new model on deferred source code. 2020-04-30 14:32:14 +02:00
Joey de Vries
91f53af052 Remove unnecessary 'uncomment' statement from all code samples. 2020-04-22 16:37:07 +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
2300a20eb0 For Bloom tutorial, make sure second MRT target's BrightColor is assigned a default value (appears to break on some drivers/cards). 2019-01-09 13:03:22 +01:00
Joey de Vries
d4af863bc3 Adjust light values to hit bloom threshold. 2019-01-08 20:56:26 +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
673fe1e89f Merge branch 'master' of https://github.com/JoeyDeVries/LearnOpenGL 2017-09-21 08:35:18 +02:00
Joey de Vries
2e0035a8d4 fix: use radians instead of degrees for camera zoom. 2017-09-21 08:35:13 +02:00
stfx
33ee64327f Fix typo 2017-08-19 16:59:35 +02:00
stfx
dc4dee3f82 Fix Bloom in rare cases
BloomColor was not initialized with a value and therefore could incorrectly bloom non-bright pixels.

Maybe... since the issue randomly started to happen on my system (i5-4570, GTX 760) without any hardware or software changes I know of. Even older versions of my program then suddenly had this problem and this was the only working fix which was mentioned in the comments section on the tutorial: https://learnopengl.com/#!Advanced-Lighting/Bloom#comment-2693931521)
2017-08-19 16:57:49 +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
Erik
c4c5fea218 Changed MSVC std::sqrtf call to simple std::sqrt - causes compile failure on mingw toolchain, as no such fucntion is present. 2017-07-04 13:40:47 +03:00
Matthew Taylor
4a94fbf2bf Add commented out code to allow window creation on OSX 2017-06-18 01:53:16 +01:00
Matthew Taylor
120c8c8c11 Fix OSX errors and warnings 2017-06-18 00:39:07 +01:00
Joey de Vries
5eddf64303 Code and content re-work: advanced lighting. 2017-06-02 22:53:53 +02:00
Joey de Vries
f844f7c541 Code and content re-work: advanced OpenGL and advanced lighting. 2017-06-01 22:04:34 +02:00
Joey de Vries
f95da5cccd Code re-work: SSAO 2017-04-24 22:57:05 +02:00
Joey de Vries
4d5aed34ac Code re-work: deferred shading. 2017-04-24 20:55:39 +02:00
Joey de Vries
bedbcda4cf Code re-work: bloom. 2017-04-24 20:36:40 +02:00
Joey de Vries
20d5811d61 Code re-work: HDR 2017-04-23 22:43:48 +02:00
Joey de Vries
7dc79cd5fa Code re-work: parallax mapping. 2017-04-23 16:30:06 +02:00
Joey de Vries
b02e4ea394 code re-work: normal mapping. 2017-04-23 16:02:02 +02:00
Joey de Vries
919084ba39 Code re-work: shadow mapping. 2017-04-23 12:52:47 +02:00
Joey de Vries
c8431d9498 Code re-work: point shadows. 2017-04-22 20:46:55 +02:00
Joey de Vries
85530ab997 Code re-work: shadow mapping. 2017-04-22 20:40:35 +02:00
Joey de Vries
33dd340549 Code re-work: gamma correction. 2017-04-22 17:25:08 +02:00
Joey de Vries
cdcc3be029 Code re-work: advanced lighting. 2017-04-22 17:07:31 +02: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
Joey de Vries
b2657d7e1c Some SSAO improvements. 2016-12-06 20:20:26 +01:00
Joey de Vries
5a17132991 Multiply ambient component with diffuse's surface (albedo) color. 2016-12-05 22:21:11 +01:00
Joey de Vries
47048b9840 Updated SSAO tutorial. 2016-12-05 21:13:41 +01:00
Joey de Vries
621f28fc65 Normal mapping gram-schmidth bugfix. 2016-11-23 08:12:53 +01:00
Drahomír Hanák
a1638ea19a Fix switching draw mode in SSAO deferred shader 2016-07-06 15:09:56 +02:00
J. de Vries
d7ed65ff5d Shadow mapping view frustum clean-up (more intuitive LookAt Up vector). 2016-03-28 01:07:11 +02:00