Giter VIP home page Giter VIP logo

shadow's Introduction

Shadow

This is a repo for any engine, system or game related code. It could be anything at any time.

So far it's a completely from-scratch-written (using nothing else but raster data provided by the Java libraries) Blinn-Phong shader with volumetric shadow mapping in 2D. It features support for two types of shading right now, per-tile and per-pixel. It's implemented solely to run in software, and for that reason per-pixel shading in realtime with dynamic lighting is not usable, refer to use per-tile shading as it is feasible as an option.

When there's time I will look into optimization options and I really want to push for the ability to use per-pixel shading in a realtime application.

It's a bit unclear what kind of optimizations can be made for the shadow mapping technique I came up with, past spatial partitioning.

Known bugs:

  • The shadow mapping at certain light positions reveals tears where it will shade (so far) axial strips even though it shouldn't. It may be that the AABB intersection with rays implementation has unforeseen corner-cases, it's also a possibility it is a precision error at some other place.

Unknown bugs:

Probably lots!

Some screenshots for demonstration of what Shadow can do:

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.