Changeset 52a02e6 in opengl-game for gl-shaders


Ignore:
Timestamp:
Apr 26, 2020, 6:08:05 PM (4 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
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)
Message:

Add a primitive topology parameter to the GraphicsPipeline_Vulkan constructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gl-shaders/explosion.vert

    r73a10ca r52a02e6  
    3636   }
    3737
    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;
    4143
    4244   gl_Position = proj * view * model_mats[ubo_index] * vec4(p, 1.0);
Note: See TracChangeset for help on using the changeset viewer.