jasonandrewth / glslLightingModels

implementing some common lighting models in GLSL using Shaders in Three.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lighting in WebGL

Implementing some common lighting models in GLSL using Shaders in Three.js. Bundled using Vite.

Requirements

  • node.js
  • npm
  • browser that supports WebGL

Installation

Run npm install in the root of the project directory.

Run

The command:

npm run dev

will start a local webserver combined with a watcher that recompiles every changed (typescript) file within this folder.

Developing

The main entrypoint is src/main.ts.

About

implementing some common lighting models in GLSL using Shaders in Three.js

License:MIT License


Languages

Language:GLSL 48.7%Language:TypeScript 45.5%Language:HTML 3.6%Language:JavaScript 1.1%Language:CSS 1.1%