| 1234567891011121314151617181920212223 |
- // ----------------------------------------------------------------
- // From Game Programming in C++ by Sanjay Madhav
- // Copyright (C) 2017 Sanjay Madhav. All rights reserved.
- //
- // Released under the BSD License
- // See LICENSE in root directory for full details.
- // ----------------------------------------------------------------
- // Request GLSL 3.3
- #version 330
- // Uniforms for world transform and view-proj
- uniform mat4 uWorldTransform;
- uniform mat4 uViewProj;
- // Vertex attributes
- in vec3 inPosition;
- void main()
- {
- vec4 pos = vec4(inPosition, 1.0);
- gl_Position = pos * uWorldTransform * uViewProj;
- }
|