- Timestamp:
- Jan 21, 2020, 6:14:09 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 5a1ace0
- Parents:
- 3e8cc8b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
shaders/asteroid.vert
r3e8cc8b r4ece3bf 5 5 mat4 model; 6 6 float hp; 7 bool deleted; 7 8 }; 8 9 … … 42 43 light2_position_eye = vec3(ubo.view * vec4(light2_position_world, 1.0)); 43 44 44 gl_Position = ubo.proj * vec4(position_eye, 1.0); 45 if (sbo.objects[obj_index].deleted) { 46 gl_Position = vec4(0.0, 0.0, 2.0, 1.0); 47 } else { 48 gl_Position = ubo.proj * vec4(position_eye, 1.0); 49 } 45 50 }
Note:
See TracChangeset
for help on using the changeset viewer.