Git Product home page Git Product logo

planar_proj_shadows's Introduction

planar_proj_shadows

Demo of Planar Projected Shadows implemented with regl.

Demo here

Implementation Details

This is an implementation of Planar Projected Shadows, described in the excellent book Real-Time Shadows.

Basically, if we only want a plane to receive shadows, we do not need any Shadow Maps or Shadow Volumes. Instead, we simply define a projection matrix P that project onto that plane. To then render the shadows, we render the shadow casting geometry, but instead of rendering them normally, (in vertex shader)we project them onto the plane using the matrix P, and(in fragment shader) we render the geometry in black.

But note that the trick only works when casting shadows onto a plane.

Build

First install all dependencies by doing

npm install

To then run the demo, do

npm run start

planar_proj_shadows's People

Contributors

erkaman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gomson kaosat-dev

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.