This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// definition in GLSL fragment shader: | |
#version 120 | |
struct Light | |
{ | |
vec4 positionObjSpace; | |
vec4 specular; | |
vec4 diffuse; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* This example demonstrates a bug with SDL2 and the Razer DeathAdder 2013 | |
* mouse on Linux. There might be other configurations where this bug occurs. | |
* | |
* Press and hold the middle mouse button. This shows a 'Chat wheel' dummy. | |
* Move the mouse a bit while holding the middle mouse button. After releasing | |
* the middle mouse button, the cursor position should be restored to its | |
* original position. | |
* |