Пример #1
0
 public ShadowmapResolver(GraphicsDevice graphicsDevice, QuadRenderComponent quadRender, ShadowmapSize maxShadowmapSize, ShadowmapSize maxDepthBufferSize)
 {
     this.graphicsDevice = graphicsDevice;
     this.quadRender = quadRender;
     this.reductionChainCount = (int)maxShadowmapSize;
     this.baseSize = 2 << this.reductionChainCount;
     this.depthBufferSize = 2 << (int)maxDepthBufferSize;
 }
Пример #2
0
 public ShadowmapResolver(GraphicsDevice graphicsDevice, QuadRenderComponent quadRender,
                          ShadowmapSize maxShadowmapSize, ShadowmapSize maxDepthBufferSize)
 {
     this.graphicsDevice = graphicsDevice;
     this.quadRender     = quadRender;
     reductionChainCount = (int)maxShadowmapSize;
     baseSize            = 2 << reductionChainCount;
     depthBufferSize     = 2 << (int)maxDepthBufferSize;
 }