Giter Club home page Giter Club logo

shadows's People

Contributors

cryru avatar nlguillemot avatar therealmjp 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  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  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  avatar  avatar  avatar  avatar

Watchers

 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

shadows's Issues

Ring like effect in the columns test scene

This is more of a question than an issue. I noticed in the columns test scene that if the camera and light directions are at a sufficient enough angle, the shadows of columns at the far end of the scene take on the shape of concentric rings (see image below).

rings1

I'm guessing this is due to ambiguity between sample positions on the cascade shadow map from the camera's current perspective, but I was curious if you've seen this before and if there is a reason behind the concentric rings shape.

Remaining app settings:

rings2

View from above:

no-rings)

Run outside of VS

Hello!
This might be a dumb question but i cannot figure out how to get this to run outside of VS. When i run Shadows.exe i get this error.

image

It runs fine when debugging inside visual studio. I also tried putting the AntWeakBar64.dll in the same folder as the exe. I gets past that error but just crashes.

Any help is appreciated, and thanks!

SampleShadowCascade applies offset and scale in wrong order (?)

In SampleShadowCascade in Mesh.hlsl, when computing the shadow position of the receiving pixel, I believe you should be applying the cascade scale first, then adding the offset.

    shadowPosition += CascadeOffsets[cascadeIdx].xyz;
    shadowPosition *= CascadeScales[cascadeIdx].xyz;

should be

shadowPosition *= CascadeScales[cascadeIdx].xyz;
shadowPosition += CascadeOffsets[cascadeIdx].xyz;

Purely mathematically speaking, if we think of applying this as a matrix, the latter is the proper order. Of course, depending on the values, these can produce drastically different results. But perhaps in this particular sample's use-case, the difference is not noticeable. Most other samples (like the DX SDK CascadedShadowMap sample) apply these in scale then offset order.

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.