Changeset d0b9596 in opengl-game
- Timestamp:
- Aug 5, 2017, 2:48:13 AM (7 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 93baa0e
- Parents:
- 8b7cfcf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
new-game.cpp
r8b7cfcf rd0b9596 117 117 glAttachShader(shader_program, fs); 118 118 119 // this must be used on OSX instead of using layout() in the shader120 glBindAttribLocation(shader_program, 0, "vertex_position");121 glBindAttribLocation(shader_program, 1, "vertex_color");122 123 119 glLinkProgram(shader_program); 124 120 -
test.vert
r8b7cfcf rd0b9596 1 1 #version 410 2 2 3 // using layout() doens't work on OSX, so use glBindAttribLocation() in the C++ code instead 4 // layout(position = 0) in vec3 vertex_position; 5 // layout(position = 1) in vec3 vertex_color; 6 7 in vec3 vertex_position; 8 in vec3 vertex_color; 3 layout(location = 0) in vec3 vertex_position; 4 layout(location = 1) in vec3 vertex_color; 9 5 10 6 out vec3 color;
Note:
See TracChangeset
for help on using the changeset viewer.