Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 330 vs 331 for /trunk/Source Code/Rendering/RenderPass/Reflector.cpp

Diff revisions: vs.
  @@ -29,7 +29,7 @@
29 29 Reflector::~Reflector()
30 30 {
31 31 UNREGISTER_FRAME_LISTENER(this);
32 - MemoryManager::SAFE_DELETE( _reflectedTexture );
32 + MemoryManager::DELETE( _reflectedTexture );
33 33 RemoveResource(_previewReflectionShader);
34 34 }
35 35
  @@ -63,8 +63,8 @@
63 63 SamplerDescriptor reflectionSampler;
64 64 reflectionSampler.setWrapMode(TEXTURE_CLAMP_TO_EDGE);
65 65 reflectionSampler.toggleMipMaps(false);
66 -
67 - TextureDescriptor reflectionDescriptor(TEXTURE_2D, RGBA8, UNSIGNED_BYTE); //Less precision for reflections
66 + //Less precision for reflections
67 + TextureDescriptor reflectionDescriptor(TEXTURE_2D, RGBA8, UNSIGNED_BYTE);
68 68
69 69 reflectionDescriptor.setSampler(reflectionSampler);
70 70
  @@ -81,12 +81,17 @@
81 81 if (_previewReflection) {
82 82 F32 height = _resolution.y * 0.333f;
83 83 _reflectedTexture->Bind(ShaderProgram::TEXTURE_UNIT0);
84 - vec4<I32> viewport(0, Application::getInstance().getResolution().y - height, _resolution.x * 0.333f, height);
85 - GFX_DEVICE.renderInViewport(viewport, DELEGATE_BIND((void(GFXDevice::*)(U32, size_t, ShaderProgram* const))&GFXDevice::drawPoints,
86 - &GFX_DEVICE,
87 - 1,
88 - GFX_DEVICE.getDefaultStateBlock(true),
89 - _previewReflectionShader));
84 + vec4<I32> viewport(0,
85 + Application::getInstance().getResolution().y - height,
86 + _resolution.x * 0.333f,
87 + height);
88 + GFX_DEVICE.renderInViewport(viewport,
89 + DELEGATE_BIND((void(GFXDevice::*)(U32, size_t, ShaderProgram* const))
90 + &GFXDevice::drawPoints,
91 + &GFX_DEVICE,
92 + 1,
93 + GFX_DEVICE.getDefaultStateBlock(true),
94 + _previewReflectionShader));
90 95 }
91 96 # endif
92 97 }