Sha256: f0ed0031eb4e1e92aaf23da847e04125d8afa3d1defad79255e17799d5a44c73
Contents?: true
Size: 1.65 KB
Versions: 2
Compression:
Stored size: 1.65 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1389617751.997781:@value"-{I" class:ETI"BundledAsset; FI"logical_path; TI"*Shaders/Builtin/Functions/RGBToXYZ.js; TI" pathname; TI"c/Users/bogumil/www/engines/cesium/app/assets/javascripts/Shaders/Builtin/Functions/RGBToXYZ.js; FI"content_type; TI"application/javascript; TI" mtime; TI"2014-01-13T10:29:06+01:00; TI"length; Ti%I"digest; TI"%453d63adf098bef472069accc69ea1b7; FI"source; TI"% //This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "/**\n\ * Converts an RGB color to CIE Yxy.\n\ * <p>The conversion is described in\n\ * <a href=\"http://content.gpwiki.org/index.php/D3DBook:High-Dynamic_Range_Rendering#Luminance_Transform\">Luminance Transform</a>\n\ * </p>\n\ * \n\ * @name czm_RGBToXYZ\n\ * @glslFunction\n\ * \n\ * @param {vec3} rgb The color in RGB.\n\ *\n\ * @returns {vec3} The color in CIE Yxy.\n\ *\n\ * @example\n\ * vec3 xyz = czm_RGBToXYZ(rgb);\n\ * xyz.x = max(xyz.x - luminanceThreshold, 0.0);\n\ * rgb = czm_XYZToRGB(xyz);\n\ */\n\ vec3 czm_RGBToXYZ(vec3 rgb)\n\ {\n\ const mat3 RGB2XYZ = mat3(0.4124, 0.2126, 0.0193,\n\ 0.3576, 0.7152, 0.1192,\n\ 0.1805, 0.0722, 0.9505);\n\ vec3 xyz = RGB2XYZ * rgb;\n\ vec3 Yxy;\n\ Yxy.r = xyz.g;\n\ float temp = dot(vec3(1.0), xyz);\n\ Yxy.gb = xyz.rg / temp;\n\ return Yxy;\n\ }\n\ "; }); ; TI"required_assets_digest; TI"%40ff235c984802ae0b3e03c2c87e8b78; FI" _version; TI"%6776f581a4329e299531e1d52aa59832; F
Version data entries
2 entries across 2 versions & 1 rubygems