source: opengl-game/explosion.frag@ 972aca1

feature/imgui-sdl points-test
Last change on this file since 972aca1 was adb104f, checked in by Dmitry Portnoy <dmp1488@…>, 6 years ago

Make the explosion shader only emit particles for a short time instead of forever and make it look more like an explosion

  • Property mode set to 100644
File size: 136 bytes
Line 
1#version 410 core
2
3in float opacity;
4
5out vec4 frag_color;
6
7void main() {
8 frag_color = vec4(1.0, opacity * opacity, 0.0, opacity);
9}
Note: See TracBrowser for help on using the repository browser.