source: opengl-game/shaders/explosion.frag

feature/imgui-sdl
Last change on this file was 4a9416a, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 4 years ago

Create a pipeline and shaders to render explosions

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