mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:36:56 +02:00
Remove static shadowMap
This commit is contained in:
parent
0776ae7e72
commit
b9b407fea0
2 changed files with 3 additions and 11 deletions
|
@ -183,14 +183,6 @@ void FramebufferCache::releaseFramebuffer(const gpu::FramebufferPointer& framebu
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gpu::FramebufferPointer FramebufferCache::getShadowFramebuffer() {
|
|
||||||
if (!_shadowFramebuffer) {
|
|
||||||
const int SHADOW_MAP_SIZE = 2048;
|
|
||||||
_shadowFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::createShadowmap(SHADOW_MAP_SIZE));
|
|
||||||
}
|
|
||||||
return _shadowFramebuffer;
|
|
||||||
}
|
|
||||||
|
|
||||||
gpu::FramebufferPointer FramebufferCache::getSelfieFramebuffer() {
|
gpu::FramebufferPointer FramebufferCache::getSelfieFramebuffer() {
|
||||||
if (!_selfieFramebuffer) {
|
if (!_selfieFramebuffer) {
|
||||||
createPrimaryFramebuffer();
|
createPrimaryFramebuffer();
|
||||||
|
|
|
@ -23,6 +23,9 @@ class FramebufferCache : public Dependency {
|
||||||
SINGLETON_DEPENDENCY
|
SINGLETON_DEPENDENCY
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
// Shadow map size is static
|
||||||
|
static const int SHADOW_MAP_SIZE = 2048;
|
||||||
|
|
||||||
/// Sets the desired texture resolution for the framebuffer objects.
|
/// Sets the desired texture resolution for the framebuffer objects.
|
||||||
void setFrameBufferSize(QSize frameBufferSize);
|
void setFrameBufferSize(QSize frameBufferSize);
|
||||||
const QSize& getFrameBufferSize() const { return _frameBufferSize; }
|
const QSize& getFrameBufferSize() const { return _frameBufferSize; }
|
||||||
|
@ -45,9 +48,6 @@ public:
|
||||||
gpu::TexturePointer getLightingTexture();
|
gpu::TexturePointer getLightingTexture();
|
||||||
gpu::FramebufferPointer getLightingFramebuffer();
|
gpu::FramebufferPointer getLightingFramebuffer();
|
||||||
|
|
||||||
/// Returns the framebuffer object used to render shadow maps;
|
|
||||||
gpu::FramebufferPointer getShadowFramebuffer();
|
|
||||||
|
|
||||||
/// Returns the framebuffer object used to render selfie maps;
|
/// Returns the framebuffer object used to render selfie maps;
|
||||||
gpu::FramebufferPointer getSelfieFramebuffer();
|
gpu::FramebufferPointer getSelfieFramebuffer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue