Changeset c5fb958 in opengl-game for explosion.vert


Ignore:
Timestamp:
Jan 18, 2019, 2:35:11 PM (6 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
bebfd5c
Parents:
fe5e3ca
Message:

WIP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • explosion.vert

    rfe5e3ca rc5fb958  
    44
    55uniform mat4 view, proj;
    6 uniform mat4 model_mat;
    76
    87/*
     
    1110};
    1211*/
     12uniform mat4 model_mat;
    1313
    1414uniform float explosion_start_time;
     
    4343   p += normalize(v_i) * mod(t, duration) / duration * 0.3; // allow time to loop around so particle emitter keeps going
    4444
    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);
    4646   gl_Position = proj * view * model_mat * vec4(p, 1.0);
    4747   gl_PointSize = 15.0; // size in pixels
Note: See TracChangeset for help on using the changeset viewer.