Skip to content

Fade out shadows as one approaches the left/right/top/bottom/near/far clip planes #11840

@bhouston

Description

@bhouston
Description of the problem

Right now when one has a shadow casting light there is a far plane and a near plane and shadows start and end abruptly at these planes. I think it would be much nicer if we faded in the shadow and faded out the shadow when one approaches the clip plane.s This way limited frustum shadows can be used in larger regions without nasty clip artifacts. Fading out shadows often looks very natural.

I noticed this when playing the game Kingdoms and Castles ( http://store.steampowered.com/app/569480/Kingdoms_and_Castles/ ). See how the shadow fades out at the top. It allows this game to have high quality shadows in the regions right in front of the camera, but they fade out as you scroll the clouds away from the center. This is very effective and also not jarring. Should be relatively easy to implement:

image

Three.js version
  • Dev
  • r85
Browser
  • All of them
OS
  • All of them

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions