Sha256: 2c01c04ac7df115ca3c89ba5f89d28b8a38bb57050628ee1b8418af9dd440be7

Contents?: true

Size: 684 Bytes

Versions: 3

Compression:

Stored size: 684 Bytes

Contents

//This file is automatically rebuilt by the Cesium build process.
/*global define*/
define(function() {
"use strict";
return "uniform vec4 asphaltColor;\n\
uniform float bumpSize;\n\
uniform float roughness;\n\
czm_material czm_getMaterial(czm_materialInput materialInput)\n\
{\n\
czm_material material = czm_getDefaultMaterial(materialInput);\n\
vec4 color = asphaltColor;\n\
vec2 st = materialInput.st;\n\
vec2 F = czm_cellular(st / bumpSize);\n\
color.rgb -= (F.x / F.y) * 0.1;\n\
float noise = czm_snoise(st / bumpSize);\n\
noise = pow(noise, 5.0) * roughness;\n\
color.rgb += noise;\n\
material.diffuse = color.rgb;\n\
material.alpha = color.a;\n\
return material;\n\
}\n\
";
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cesium-0.20.0 app/assets/javascripts/Shaders/Materials/AsphaltMaterial.js
cesium-0.19.0 app/assets/javascripts/Shaders/Materials/AsphaltMaterial.js
cesium-0.18.0 app/assets/javascripts/Shaders/Materials/AsphaltMaterial.js