source:
opengl-game/shaders/explosion.frag@
ca188cc
Last change on this file since ca188cc was 4a9416a, checked in by , 5 years ago | |
---|---|
|
|
File size: 224 bytes |
Rev | Line | |
---|---|---|
[4a9416a] | 1 | #version 450 |
2 | #extension GL_ARB_separate_shader_objects : enable | |
3 | ||
4 | layout(location = 0) in float opacity; | |
5 | ||
6 | layout(location = 0) out vec4 frag_color; | |
7 | ||
8 | void main() { | |
9 | frag_color = vec4(1.0, opacity * opacity, 0.0, opacity); | |
10 | } |
Note:
See TracBrowser
for help on using the repository browser.