GithubHelp home page GithubHelp logo

plumpmath / webgl-tile-based-forward-plus-renderer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shrekshao/webgl-tile-based-forward-plus-renderer

0.0 0.0 0.0 19.97 MB

WebGL-Tile-Based-Forward-Plus-Renderer using glTF model

GLSL 1.45% HTML 0.26% JavaScript 98.26% Batchfile 0.01% Python 0.03%

webgl-tile-based-forward-plus-renderer's Introduction

WebGL Tiled Forward Plus Shading

ScreenShots

Debug View

Depth tile light heat map with depth culling tile light heat map

*blue-red: 0-20 lights

Live Demo

Live Demo Link

Coarse performance comparison

  • num of lights = 120
  • light radius = 4.0
  • sponza model
shader FPS
forward 13
forward plus 21
forward plus with early z TODO
forward plus with depth culling 17
deferred 5
deferred with scissor for lights 33
deferred with sphere proxy for lights 45

*deferred implementation link used for comparison

TODO: some details about implementation

Potential Optimization

  • early z for lightAccumulation pass
  • put min max depth for tile into a separate pass, output it into a small texture as buffer (currently each thread compute this for themselves, very reduntant work)

Credits

webgl-tile-based-forward-plus-renderer's People

Contributors

likangning93 avatar shrekshao avatar

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.