Changeset 646f3f2 in opengl-game for explosion.vert
- Timestamp:
- Jan 30, 2019, 3:10:23 AM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 39ac76d
- Parents:
- fe5e3ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
explosion.vert
rfe5e3ca r646f3f2 5 5 uniform mat4 view, proj; 6 6 uniform mat4 model_mat; 7 8 /*9 7 layout (std140) uniform models { 10 8 mat4 model_mats[MAX_NUM_OBJECTS]; 11 9 }; 12 */13 10 14 11 uniform float explosion_start_time; … … 43 40 p += normalize(v_i) * mod(t, duration) / duration * 0.3; // allow time to loop around so particle emitter keeps going 44 41 45 //gl_Position = proj * view * model_mats[ 0] * vec4(p, 1.0);46 gl_Position = proj * view * model_mat * vec4(p, 1.0);42 //gl_Position = proj * view * model_mats[ubo_index] * vec4(p, 1.0); 43 gl_Position = proj * view * model_mats[0] * vec4(p, 1.0); 47 44 gl_PointSize = 15.0; // size in pixels 48 45 }
Note:
See TracChangeset
for help on using the changeset viewer.