Skip to content

Latest commit

 

History

History
198 lines (164 loc) · 18.7 KB

README.md

File metadata and controls

198 lines (164 loc) · 18.7 KB

Build Status  Docs

Cesium is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin. It uses WebGL for hardware-accelerated graphics, and is cross-platform, cross-browser, and tuned for dynamic-data visualization.

http://cesiumjs.org/

Get Started

THis is just the readme for the Perlin Noise Function in SnowMaterials

The snow slope is used to blend a white color with the texture of the terrain. Now that slope amplitude is modulated by perlin noise. THere is a 2D texture of random noise used which is used for generating random values. A random float is generated by interpolating a 2D texture with a 3D coordinate. In the current implementation the 3D coordinate is the model space position. This has the nice property that as you pan around, the snow drifts are fixed with the terrain, not the camera.

The 3D noise function was writted by Stefan Gustafson from 2004.

In snow materials one can change the repetition scale

SCALE = 100000;

Change the persistance

persistance = 0.5

Change how much noise is added to the slope

NoiseFraction = 0.4 (according to Snow paper)

Change the number of octaves to add in

orders = 5

Visit the Downloads page or use the npm module:

npm install cesium

Have questions? Ask them on the forum.

Interested in contributing? See CONTRIBUTING.md.

Mission

Our mission is to create the leading 3D globe and map for static and time-dynamic content, with the best possible performance, precision, visual quality, platform support, community, and ease of use.

License

Apache 2.0. Cesium is free for both commercial and non-commercial use.

We appreciate attribution by including the Cesium logo and link in your app.

Featured Demos

                     

Demos