Sha256: 38eb20718f609b06298b483a33b013c3f2ac665e1a93cbe468388928f07a3e94
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1380709797.1526349:@value"�{I" class:ETI"BundledAsset;FI"logical_path;TI"%Shaders/Builtin/Functions/hue.js;TI" pathname;TI"^/Users/bogumil/www/engines/cesium/app/assets/javascripts/Shaders/Builtin/Functions/hue.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-10-02T12:16:28+02:00;TI"length;Ti�I"digest;TI"%294bb90975535ed9db6f0aa14a504f81;FI"source;TI"� //This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "vec3 czm_hue(vec3 rgb, float adjustment)\n\ {\n\ const mat3 toYIQ = mat3(0.299, 0.587, 0.114,\n\ 0.595716, -0.274453, -0.321263,\n\ 0.211456, -0.522591, 0.311135);\n\ const mat3 toRGB = mat3(1.0, 0.9563, 0.6210,\n\ 1.0, -0.2721, -0.6474,\n\ 1.0, -1.107, 1.7046);\n\ vec3 yiq = toYIQ * rgb;\n\ float hue = atan(yiq.z, yiq.y) + adjustment;\n\ float chroma = sqrt(yiq.z * yiq.z + yiq.y * yiq.y);\n\ vec3 color = vec3(yiq.x, chroma * cos(hue), chroma * sin(hue));\n\ return toRGB * color;\n\ }\n\ "; }); ;TI"required_assets_digest;TI"%6a6d7918bfb4271c97068fab2c93ec35;FI" _version;TI"%6776f581a4329e299531e1d52aa59832;F
Version data entries
2 entries across 2 versions & 1 rubygems