This file contains 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
vec3 hsv_to_rgb(vec3 color) { | |
// Translates HSV color to RGB color | |
// H: 0.0 - 360.0, S: 0.0 - 100.0, V: 0.0 - 100.0 | |
// R, G, B: 0.0 - 1.0 | |
float hue = color.x; | |
float saturation = color.y; | |
float value = color.z; | |
float c = (value/100) * (saturation/100); |