Commit Graph

43 Commits

Author SHA1 Message Date
Joey de Vries
6159792dec Fix correct shader activation on AA chapter. 2022-07-11 16:51:08 +02:00
Pierce
f9812ac1cf Update cubemaps_environment_mapping.cpp 2022-02-18 14:03:43 +08: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
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
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
Jane Doe
2753224137 necessery -> necessary 2020-10-04 09:44:29 -07:00
Joey de Vries
3615cfce79 Do Geometry Shader normal visualization in view-space to prevent perspective distortion. 2020-06-04 17:41:32 +02:00
Joey de Vries
7f41f1fcee Restore stencil test func to defaults once done with stencil operations. 2020-05-26 17:02:06 +02:00
Joey de Vries
fb5d791d7f Add face culling exercise1 to repo. 2020-05-22 18:01:40 +02:00
Joey de Vries
a3bf2ee860 Add first demo to repo (was still linking to old demo code). 2020-05-22 18:01:27 +02:00
Joey de Vries
f36653f736 Source/model tweaks for updated revision. 2020-05-04 10:57:08 +02:00
Joey de Vries
91f53af052 Remove unnecessary 'uncomment' statement from all code samples. 2020-04-22 16:37:07 +02: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
3309ae604b Fix skybox order. 2018-01-22 19:11:11 +01:00
Joey de Vries
3b605521fb Fix geometry shader normal homogenous coordinate, and use std::string instead of aString for model loading. 2018-01-16 08:50:57 +01: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
Charles Zhang
e7382fdfb0 fix texture1 uniform name & two shader variables 2017-06-29 18:37:08 +08:00
Joey de Vries
905be9ce52 Use appropriate texture fs name on setting uniform. 2017-06-29 08:38:48 +02:00
Charles Zhang
ecc7e7ca92 Variable name does not match with that in frag shader 2017-06-29 14:32:27 +08:00
Joey de Vries
4bd8846929 Merge pull request #61 from amesgames/master
Fixed stencil testing sample to actually set the uniform matrices on …
2017-06-29 08:10:14 +02:00
Matthew Taylor
4a94fbf2bf Add commented out code to allow window creation on OSX 2017-06-18 01:53:16 +01: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
49d8d895ae Updated source code to reflect content changes (code re-work): advanced OpenGL and model-loading. 2017-05-31 23:12:15 +02:00
Andrew Ames
5001977dad Fixed stencil testing sample to actually set the uniform matrices on the single color shader program. Without it, the border does not show up. 2017-04-25 14:48:33 -07:00
Joey de Vries
85530ab997 Code re-work: shadow mapping. 2017-04-22 20:40:35 +02:00
Joey de Vries
91dc770bc5 Code re-work: Blending. 2017-04-20 22:04:34 +02:00
Joey de Vries
9994831d5d Code re-work: anti-aliasing. 2017-04-20 21:30:22 +02:00
Joey de Vries
cd5f93211b Code re-work instancing. 2017-04-20 21:30:07 +02:00
Joey de Vries
5693c59693 Code re-work: geometry shader. 2017-04-20 00:04:02 +02:00
Joey de Vries
c763be2c08 Code re-work: Advanced OpenGL 2017-04-19 22:05:36 +02:00
Joey de Vries
4b6b4d6377 Start code re-work Advanced OpenGL chapter. 2017-04-17 20:40:26 +02:00
Joey de Vries
af6104b2f5 Instancing glDrawElements argument fix. 2016-10-12 18:53:19 +02:00
Joey de Vries
c819799803 Merge branch 'master' of https://github.com/JoeyDeVries/LearnOpenGL 2016-10-03 21:47:20 +02:00
Joey de Vries
93d9412ba7 Asteroid instancing example bugfix. 2016-10-03 18:23:35 +02:00
txf
8baa9bf99e Fixed bug: cannot load images in vs2015. 2016-08-25 15:16:46 +08:00
Andrew Copland
7ee4d9b56a Bind the rock models texture to the shaders sampler so texture mapping works in instancing example. 2016-03-30 10:53:53 +01:00
Joey de Vries
20999a1b68 Update to depth testing article
Instead of directly dividing by far in the LinearizeDepth function,
divide by far in the main() function to make it explicitly clear the
LinearizeDepth value returns the depth value up to far.
2015-08-12 10:09:49 +02:00
Marin Nilsson
a8a8d11f22 Support for out-of-source builds.
Uses environment variable to tell the program where to find resource
files.
Sharder sources are still search for in the current workind directory.
2015-07-30 21:48:41 +02:00
zmertens
30d336f044 sample keyword is reserved in GLSL 4.2+ 2015-04-26 11:29:01 -07:00
zmertens
049037561a added keyboard call back to geometry shader tutorial 2015-04-12 21:01:31 -07:00
Joey de Vries
f28ad1e256 Initial commit, all code samples with working CMake script for VS/Windows. 2015-03-23 15:42:04 +01:00