mirror of
				https://github.com/stevenrobertson/cuburn.git
				synced 2025-11-03 18:00:55 -05:00 
			
		
		
		
	Fix rgb2hsv
This commit is contained in:
		@ -155,7 +155,7 @@ float3 rgb2hsv(float3 rgb) {
 | 
			
		||||
        float bc = (M - rgb.z) * C;
 | 
			
		||||
 | 
			
		||||
        if      (rgb.x == M)  h = bc - gc;
 | 
			
		||||
        else if (rgb.y == M)  h = 2 + gc - bc;
 | 
			
		||||
        else if (rgb.y == M)  h = 2 + rc - bc;
 | 
			
		||||
        else                  h = 4 + gc - rc;
 | 
			
		||||
 | 
			
		||||
        if (h < 0) h += 6;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user