Giter Site home page Giter Site logo

guidoschmidt / examples.lygia-threejs Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 2.0 10.79 MB

Collection of three.js examples using lygia shader library

HTML 9.24% GLSL 26.65% SCSS 2.42% TypeScript 61.70%
threejs glsl glsl-shaders lygia shaders three-js threejs-example threejs-learning shader-library webgl

examples.lygia-threejs's Introduction

Lygia Examples

These are examples of how to use LYGIA Shader Library with three.js

Live examples: lygia.guidoschmidt.cc


Example Preveiw
marching squares [2D] Marching Squares [2D]
forward rendering [basic] Forward rendering [basic]
forward rendering [advanced], 5 x 5 PBR Materials Forward rendering [advanced]

How to start?

Clone this repository including its submodules. LYGIA is used as git submodule in this repository.

git clone --recurse-submodules [email protected]:guidoschmidt/lygia_threejs_examples.git

Run the examples

The repository contains several examples in. Each example is its own sub-project. You can start each example as following:

cd 3d-forward-rendering-basic
npm | yarn | pnpm install
npm | yarn | pnpm dev

You can also start an overview HTML page by running just:

npm | yarn | pnpm dev

Open Issues & Ideas

  • Use THREE.js internal light shadow map. Currently it looks like there's an incosistency when using light.shadow.map.texture as the shadow map texture.
  • Create a custom LygiaMaterial in order to integrate into THREE.js render pipeline
  • Pass all PBR material parameters to the Lygia shaders/materials

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.