UNPKG

@cesium/engine

Version:

CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.

19 lines (18 loc) 554 B
//This file is automatically rebuilt by the Cesium build process. export default "uniform sampler2D colorTexture;\n\ \n\ in vec2 v_textureCoordinates;\n\ \n\ float rand(vec2 co)\n\ {\n\ return fract(sin(dot(co.xy ,vec2(12.9898, 78.233))) * 43758.5453);\n\ }\n\ \n\ void main(void)\n\ {\n\ float noiseValue = rand(v_textureCoordinates + sin(czm_frameNumber)) * 0.1;\n\ vec3 rgb = texture(colorTexture, v_textureCoordinates).rgb;\n\ vec3 green = vec3(0.0, 1.0, 0.0);\n\ out_FragColor = vec4((noiseValue + rgb) * green, 1.0);\n\ }\n\ ";