Changeset c5fb958 in opengl-game for explosion.vert
- Timestamp:
- Jan 18, 2019, 2:35:11 PM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- bebfd5c
- Parents:
- fe5e3ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
explosion.vert
rfe5e3ca rc5fb958 4 4 5 5 uniform mat4 view, proj; 6 uniform mat4 model_mat;7 6 8 7 /* … … 11 10 }; 12 11 */ 12 uniform mat4 model_mat; 13 13 14 14 uniform float explosion_start_time; … … 43 43 p += normalize(v_i) * mod(t, duration) / duration * 0.3; // allow time to loop around so particle emitter keeps going 44 44 45 //gl_Position = proj * view * model_mats[ 0] * vec4(p, 1.0);45 //gl_Position = proj * view * model_mats[ubo_index] * vec4(p, 1.0); 46 46 gl_Position = proj * view * model_mat * vec4(p, 1.0); 47 47 gl_PointSize = 15.0; // size in pixels
Note:
See TracChangeset
for help on using the changeset viewer.