Sha256: 9ce8d4085dfac8da2091935c02b3e733b30c8d40676ad7421d51668c3a2f6892
Contents?: true
Size: 780 Bytes
Versions: 3
Compression:
Stored size: 780 Bytes
Contents
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "uniform sampler2D image;\n\ uniform float strength;\n\ uniform vec2 repeat;\n\ czm_material czm_getMaterial(czm_materialInput materialInput)\n\ {\n\ czm_material material = czm_getDefaultMaterial(materialInput);\n\ vec4 textureValue = texture2D(image, fract(repeat * materialInput.st));\n\ vec3 normalTangentSpace = textureValue.channels;\n\ normalTangentSpace.xy = normalTangentSpace.xy * 2.0 - 1.0;\n\ normalTangentSpace.z = clamp(1.0 - strength, 0.1, 1.0);\n\ normalTangentSpace = normalize(normalTangentSpace);\n\ vec3 normalEC = materialInput.tangentToEyeMatrix * normalTangentSpace;\n\ material.normal = normalEC;\n\ return material;\n\ }\n\ "; });
Version data entries
3 entries across 3 versions & 1 rubygems