John Kessenich | abde37f | 2015-05-15 21:36:01 +0000 | [diff] [blame] | 1 | #version 430
|
| 2 |
|
| 3 | const double d1 = 3.1415926535897932384626433832795LF;
|
| 4 | const double d2 = 3.1415;
|
| 5 | const double d3 = 3.1415926535897932384626433832795LF;
|
| 6 | const double d4 = 3.1415926535897932384626433832795;
|
| 7 |
|
| 8 | buffer bufName {
|
| 9 | float f;
|
| 10 | double d;
|
| 11 | } bufInst;
|
| 12 |
|
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 13 |
|
John Kessenich | abde37f | 2015-05-15 21:36:01 +0000 | [diff] [blame] | 14 | uniform writeonly image2D destTex;
|
| 15 |
|
| 16 | void main()
|
| 17 | {
|
| 18 | bufInst.d = float(d1);
|
| 19 | bufInst.f = float(d1 + d2 + d3 + d4);
|
| 20 |
|
| 21 | ivec2 storePos = ivec2(gl_GlobalInvocationID.xy);
|
| 22 | double localCoef = length(vec2(ivec2(gl_LocalInvocationID.xy)-8)/8.0);
|
| 23 | dvec4 aa = dvec4(0.4, 0.2, 0.3, 0.4);
|
| 24 | double globalCoef = 1.0;
|
| 25 | }
|