public ShadowMap(GraphicsDevice device, ShadowMapEffect shadowMapEffect) { if (device == null) throw new ArgumentNullException("device"); GraphicsDevice = device; this.shadowMapEffect = shadowMapEffect; }