Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

BeastX

Member Since 26 Jul 2005
Offline Last Active Oct 25 2012 10:07 AM
-----

Posts I've Made

In Topic: Virtual Shadow Depth Cube Textures

14 March 2012 - 08:00 AM

This isn't a standard cube map.

My cube faces are all on a single texture that's subdivided into an NxM grid.  For each light, I render depth/shadow data to a viewport/cell on the grid instead of a unique FBO per face.  This saves me FBO changes, texture units, and allows me to render multiple lights and shadows per pass.

CLAMP_TO_EDGE won't work with the subdivided texture because not all edges are on the texture's border.

Clamping UVs in the fragment shader, to not cross cell boundaries, behaves as I'd expect it to but doesn't fix the outline.

PARTNERS