Sha256: 5a94138c93c550f932e805cffcc49b9335bcd1a5d403180e84a3d1c4ea4bde8e
Contents?: true
Size: 1.66 KB
Versions: 2
Compression:
Stored size: 1.66 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1389617752.01318:@value":{I" class:ETI"BundledAsset; FI"logical_path; TI"*Shaders/Builtin/Functions/XYZToRGB.js; TI" pathname; TI"c/Users/bogumil/www/engines/cesium/app/assets/javascripts/Shaders/Builtin/Functions/XYZToRGB.js; FI"content_type; TI"application/javascript; TI" mtime; TI"2014-01-13T10:29:06+01:00; TI"length; Ti2I"digest; TI"%77e18a99750a03b6f0958c21d97679d8; FI"source; TI"2 //This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "/**\n\ * Converts a CIE Yxy color to RGB.\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_XYZToRGB\n\ * @glslFunction\n\ * \n\ * @param {vec3} Yxy The color in CIE Yxy.\n\ *\n\ * @returns {vec3} The color in RGB.\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_XYZToRGB(vec3 Yxy)\n\ {\n\ const mat3 XYZ2RGB = mat3( 3.2405, -0.9693, 0.0556,\n\ -1.5371, 1.8760, -0.2040,\n\ -0.4985, 0.0416, 1.0572);\n\ vec3 xyz;\n\ xyz.r = Yxy.r * Yxy.g / Yxy.b;\n\ xyz.g = Yxy.r;\n\ xyz.b = Yxy.r * (1.0 - Yxy.g - Yxy.b) / Yxy.b;\n\ \n\ return XYZ2RGB * xyz;\n\ }\n\ "; }); ; TI"required_assets_digest; TI"%c7b6979a2c00f5f289aad8e533d1ef27; FI" _version; TI"%6776f581a4329e299531e1d52aa59832; F
Version data entries
2 entries across 2 versions & 1 rubygems