Changeset 7e10667 in opengl-game for explosion.vert
- Timestamp:
- May 3, 2019, 7:53:55 PM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- c55614a
- Parents:
- dc19a39
- git-author:
- Dmitry Portnoy <dmitry.portnoy@…> (05/03/19 19:53:42)
- git-committer:
- Dmitry Portnoy <dmitry.portnoy@…> (05/03/19 19:53:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
explosion.vert
rdc19a39 r7e10667 4 4 5 5 uniform mat4 view, proj; 6 uniform float cur_time; 7 8 uniform float explosion_start_time[1012]; 9 6 10 layout (std140) uniform models { 7 11 mat4 model_mats[MAX_NUM_OBJECTS]; 8 12 }; 9 10 uniform float explosion_start_time;11 uniform float cur_time;12 13 13 14 layout (location = 0) in vec3 v_i; // initial velocity … … 19 20 void main() { 20 21 float duration = 0.5; 21 float t = cur_time - explosion_start_time - start_time;22 float t = cur_time - explosion_start_time[ubo_index] - start_time; 22 23 23 24 if (t < 0.0) {
Note:
See TracChangeset
for help on using the changeset viewer.