Changeset 52a02e6 in opengl-game for gl-shaders
- Timestamp:
- Apr 26, 2020, 6:08:05 PM (4 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- 4a9416a
- Parents:
- 73a10ca
- git-author:
- Dmitry Portnoy <dmitry.portnoy@…> (04/26/20 17:55:49)
- git-committer:
- Dmitry Portnoy <dmitry.portnoy@…> (04/26/20 18:08:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gl-shaders/explosion.vert
r73a10ca r52a02e6 36 36 } 37 37 38 vec3 p = vec3(0.0, 0.0, 0.0); // this is the center of the explosion 39 vec3 a = vec3(0.0, 0.1, 0.0); 40 p += normalize(v_i) * mod(t, duration) / duration * 0.3; // allow time to loop around so particle emitter keeps going 38 // this is the center of the explosion 39 vec3 p = vec3(0.0, 0.0, 0.0); 40 41 // allow time to loop around so particle emitter keeps going 42 p += normalize(v_i) * mod(t, duration) / duration * 0.3; 41 43 42 44 gl_Position = proj * view * model_mats[ubo_index] * vec4(p, 1.0);
Note:
See TracChangeset
for help on using the changeset viewer.