1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 16:31:31 +00:00

Merge pull request #981 from TomHarte/ColourPrecision

Increase precision of phase interpolation.
This commit is contained in:
Thomas Harte 2021-08-09 17:08:17 -04:00 committed by GitHub
commit f2af8ff25d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,8 +91,8 @@ struct Line {
struct SourceInterpolator {
float4 position [[position]];
float2 textureCoordinates;
half unitColourPhase; // i.e. one unit per circle.
half colourPhase; // i.e. 2*pi units per circle, just regular radians.
float unitColourPhase; // i.e. one unit per circle.
float colourPhase; // i.e. 2*pi units per circle, just regular radians.
half colourAmplitude [[flat]];
};