Private GLSL utility functions
Go to file
yoichi kobayashi 9c63edd10c [edit] readme.
2016-12-27 01:02:07 +09:00
convertHsvToRgb.glsl [add] glsl files. 2016-10-04 00:31:23 +09:00
convertRgbToHsv.glsl [add] glsl files. 2016-10-04 00:31:23 +09:00
package.json [add] default package.json. 2016-10-04 00:40:20 +09:00
README.md [edit] readme. 2016-12-27 01:02:07 +09:00

glsl-util

install

npm i git://github.com/ykob/glsl-util.git

convertHsvToRgb and convertRgbToHsv

this is the function that convetts RGB to HSV. or is its opposite.

Quote source

http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl

usage

#pragma glslify: convertHsvToRgb = require(glsl-convert-color/convertHsvToRgb);
#pragma glslify: convertRgbToHsv = require(glsl-convert-color/convertRgbToHsv);