Skip to content

bobbyroe/vertex-earth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Three.js Interactive Vertex Earth

Demonstration of an interactive globe rendered using Three.js, complete with a starfield background and orbit controls. The globe uses custom shaders to apply textures, elevation, and alpha transparency.

Features

  • Interactive Globe: A rotating 3D globe built with an IcosahedronGeometry, wireframe, and point geometry using custom shaders.
  • Custom Shaders: Vertex and fragment shaders are used for applying color, elevation, and alpha textures.
  • Starfield Background: A dynamic starfield for added depth and visual appeal.
  • Orbit Controls: Allows users to rotate and zoom the globe interactively using the mouse.
  • Responsive Design: Automatically adjusts the canvas size when the window is resized.

Customization

  • Globe Appearance: Modify the textures in the TextureLoader (colorMap, elevMap, and alphaMap) to change the appearance of the globe.
  • Starfield: Adjust the number of stars or their size in getStarfield.js to change the look of the starfield.
  • Shaders: Modify the vertex or fragment shaders for custom visual effects on the globe's surface.

Acknowledgments

Watch the tutorial on YouTube

Releases

No releases published

Packages

No packages published