Sha256: 8110f497a4726dfae91ba972e3f42d98dc2f9aa6117bc062867e431cb41d1acc
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1380709797.257108:@value"a{I" class:ETI"BundledAsset;FI"logical_path;TI"'Shaders/Builtin/Functions/phong.js;TI" pathname;TI"`/Users/bogumil/www/engines/cesium/app/assets/javascripts/Shaders/Builtin/Functions/phong.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-10-02T12:16:28+02:00;TI"length;Ti_I"digest;TI"%e8b66f380b7a6112dd5db927250374e1;FI"source;TI"_ //This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "float czm_private_getLambertDiffuseOfMaterial(vec3 lightDirectionEC, czm_material material)\n\ {\n\ return czm_getLambertDiffuse(lightDirectionEC, material.normal);\n\ }\n\ float czm_private_getSpecularOfMaterial(vec3 lightDirectionEC, vec3 toEyeEC, czm_material material)\n\ {\n\ return czm_getSpecular(lightDirectionEC, toEyeEC, material.normal, material.shininess);\n\ }\n\ vec4 czm_phong(vec3 toEye, czm_material material)\n\ {\n\ float diffuse = czm_private_getLambertDiffuseOfMaterial(vec3(0.0, 0.0, 1.0), material) + czm_private_getLambertDiffuseOfMaterial(vec3(0.0, 1.0, 0.0), material);\n\ float specular = czm_private_getSpecularOfMaterial(czm_sunDirectionEC, toEye, material) + czm_private_getSpecularOfMaterial(czm_moonDirectionEC, toEye, material);\n\ vec3 ambient = vec3(0.0);\n\ vec3 color = ambient + material.emission;\n\ color += material.diffuse * diffuse;\n\ color += material.specular * specular;\n\ return vec4(color, material.alpha);\n\ }\n\ "; }); ;TI"required_assets_digest;TI"%cc35c3e2cbc035cca7ac3a63600de499;FI" _version;TI"%6776f581a4329e299531e1d52aa59832;F
Version data entries
2 entries across 2 versions & 1 rubygems