1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Increase precision of phase interpolation.

This commit is contained in:
Thomas Harte 2021-08-09 15:48:27 -04:00
parent 1f0bf1b32d
commit 7d8894415c

View File

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