Skip to content

CIS-566-2018/homework-1-noisy-planets-salaark

Repository files navigation

Salaar Kohari - Procedural Shaders

About

  • Custom procedural shaders made with WebGL and TypeScript
  • Created for CIS 566 - Procedural Computer Graphics
  • Salaar Kohari (PennKey: salaar)

Planet Shader

The shader uses a Blinn-Phong model for specular lighting, with higher intensity on the water than on land. A 4D Simplex noise function (based on 3D position and time) clamped to prevent valleys and combined with Fractal Brownian Motion creates the land heightmap. Another 4D Simplex noise function is used to create color highlights in the water. Subtle land highlights are height-based. Distance fog occurs on the horizon of the planet, regardless of viewing angle. The user can tweak sunlight intensity and fog color.

Running the Code

  1. Install Node.js.

  2. Using a command terminal, run npm install in the root directory of your project.

  3. Run npm start and then go to localhost:5660 in your web browser

Resources

About

homework-1-noisy-planets-salaark created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published