Optimized shadowcaster layer