16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 18:39:18 +02:00

build 170821.

This commit is contained in:
tmj-fstate
2017-08-21 20:32:24 +02:00
parent 18043f2a0e
commit a3bde32bc6
4 changed files with 29 additions and 37 deletions

View File

@@ -76,9 +76,9 @@ HSVtoRGB( glm::vec3 const &HSV ) {
hh /= 60.0;
int const i = (int)hh;
float const ff = hh - i;
float const p = HSV.z * ( 1.0 - HSV.y );
float const q = HSV.z * ( 1.0 - ( HSV.y * ff ) );
float const t = HSV.z * ( 1.0 - ( HSV.y * ( 1.0 - ff ) ) );
float const p = HSV.z * ( 1.f - HSV.y );
float const q = HSV.z * ( 1.f - ( HSV.y * ff ) );
float const t = HSV.z * ( 1.f - ( HSV.y * ( 1.f - ff ) ) );
switch( i ) {
case 0: