Changeset 845a2cb in opengl-game for gl-shaders/explosion.vert


Ignore:
Timestamp:
Apr 22, 2020, 12:58:07 AM (4 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
points-test
Parents:
73a10ca
Message:

test point size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gl-shaders/explosion.vert

    r73a10ca r845a2cb  
    1919
    2020void main() {
     21   /*
    2122   float duration = 0.5;
    2223   float t = cur_time - explosion_start_time[ubo_index] - start_time;
     
    3637   }
    3738
    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
     39   //  this is the center of the explosion
     40   // allow time to loop around so particle emitter keeps going
     41   vec3 p = normalize(v_i) * mod(t, duration) / duration * 0.3;
    4142
    4243   gl_Position = proj * view * model_mats[ubo_index] * vec4(p, 1.0);
    43    gl_PointSize = 15.0; // size in pixels
     44   */
     45   opacity = 1.0;
     46   gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
     47   gl_PointSize = 100.0; // size in pixels
    4448}
Note: See TracChangeset for help on using the changeset viewer.