Changeset 7e10667 in opengl-game for explosion.vert


Ignore:
Timestamp:
May 3, 2019, 7:53:55 PM (6 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
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)
Message:

Finish switching to the new model group rendering algorithm for TYPE_EXPLOSION objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • explosion.vert

    rdc19a39 r7e10667  
    44
    55uniform mat4 view, proj;
     6uniform float cur_time;
     7
     8uniform float explosion_start_time[1012];
     9
    610layout (std140) uniform models {
    711  mat4 model_mats[MAX_NUM_OBJECTS];
    812};
    9 
    10 uniform float explosion_start_time;
    11 uniform float cur_time;
    1213
    1314layout (location = 0) in vec3 v_i; // initial velocity
     
    1920void main() {
    2021   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;
    2223
    2324   if (t < 0.0) {
Note: See TracChangeset for help on using the changeset viewer.