Changeset f7d35da in opengl-game for color.vert
- Timestamp:
- Jun 10, 2018, 9:31:48 PM (7 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 5c403fe
- Parents:
- 0d5c100
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
color.vert
r0d5c100 rf7d35da 14 14 layout(location = 3) in uint ubo_index; 15 15 16 out vec3 position_eye, normal_eye, color, light_position_eye ;16 out vec3 position_eye, normal_eye, color, light_position_eye, light2_position_eye; 17 17 18 18 // fixed point light position 19 19 vec3 light_position_world = vec3(0.0, 0.0, 2.0); 20 vec3 light2_position_world = vec3(0.0, -3.0, -2.0); 20 21 21 22 void main() { … … 24 25 color = vertex_color; 25 26 light_position_eye = vec3(view * vec4(light_position_world, 1.0)); 27 light2_position_eye = vec3(view * vec4(light2_position_world, 1.0)); 26 28 27 29 gl_Position = proj * vec4(position_eye, 1.0);
Note:
See TracChangeset
for help on using the changeset viewer.