feature/imgui-sdl
points-test
Last change
on this file since db06984 was db06984, checked in by Dmitry Portnoy <dmp1488@…>, 6 years ago |
Create a particle system that will later be used to render exploding asteroids
|
-
Property mode
set to
100644
|
File size:
193 bytes
|
Line | |
---|
1 | #version 410 core
|
---|
2 |
|
---|
3 | in float opacity;
|
---|
4 |
|
---|
5 | out vec4 frag_color;
|
---|
6 |
|
---|
7 | vec4 particle_color = vec4 (0.5, 0.5, 0.8, 0.8);
|
---|
8 |
|
---|
9 | void main() {
|
---|
10 | frag_color.a = opacity;
|
---|
11 | frag_color.rgb = particle_color.rgb;
|
---|
12 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.