This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define PLOT_SAMPLES 3 | |
| template <FN, XMIN, XMAX, YMIN, YMAX, XGRID, YGRID> | |
| glsl vec4 plot(vec2 pos) { | |
| vec2 tPos = vec2( | |
| mix(float(XMIN), float(XMAX), pos.x), | |
| mix(float(YMIN), float(YMAX), pos.y) | |
| ); | |
| vec2 pxSize = vec2((XMAX)-(XMIN), (YMAX)-(YMIN))*shadron_PixelSize; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <math_constants> | |
| #include <median> | |
| #include <billboard> | |
| #include <affine_transform> | |
| glsl float linearStep(float a, float b, float x) { | |
| return clamp((x-a)/(b-a), 0.0, 1.0); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <math_constants> | |
| #include <multisample> | |
| glsl struct Cogwheel { | |
| vec2 center; | |
| float r; | |
| int teeth; | |
| float toothSize; | |
| float toothShape; |
NewerOlder