You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CementMaterial.glsl 439B

123456789101112131415161718
  1. uniform vec4 cementColor;
  2. uniform float grainScale;
  3. uniform float roughness;
  4. czm_material czm_getMaterial(czm_materialInput materialInput){
  5. czm_material material = czm_getDefaultMaterial(materialInput);
  6. float noise = czm_snoise(materialInput.st / grainScale);
  7. noise = pow(noise, 5.0) * roughness;
  8. vec4 color = cementColor;
  9. color.rgb += noise;
  10. material.diffuse = color.rgb;
  11. material.alpha = color.a;
  12. return material;
  13. }