Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 908 vs 909 for /trunk/Source Code/Rendering/EnvironmentProbe.cpp

Diff revisions: vs.
  @@ -78,10 +78,10 @@
78 78 depthDescriptor.setSampler(reflectionSampler);
79 79
80 80 RenderTargetHandle tempHandle;
81 - s_reflection = context.allocateRT(RenderTargetUsage::ENVIRONMENT, "EnviromentProbe");
81 + s_reflection = context.allocateRT(RenderTargetUsage::ENVIRONMENT, vec2<U16>(Config::REFLECTION_TARGET_RESOLUTION_ENVIRONMENT_PROBE), "EnviromentProbe");
82 82 s_reflection._rt->addAttachment(environmentDescriptor, RTAttachment::Type::Colour, 0);
83 83 s_reflection._rt->addAttachment(depthDescriptor, RTAttachment::Type::Depth, 0);
84 - s_reflection._rt->create(Config::REFLECTION_TARGET_RESOLUTION_ENVIRONMENT_PROBE, Config::REFLECTION_TARGET_RESOLUTION_ENVIRONMENT_PROBE);
84 + s_reflection._rt->create();
85 85 s_reflection._rt->setClearColour(RTAttachment::Type::COUNT, 0, DefaultColours::WHITE());
86 86 }
87 87
  @@ -144,7 +144,7 @@
144 144 void EnvironmentProbe::debugDraw(RenderSubPassCmds& subPassesInOut) {
145 145 _boundingBoxPrimitive->paused(false);
146 146
147 - const Texture_ptr& reflectTex = s_reflection._rt->getAttachment(RTAttachment::Type::Colour, 0).asTexture();
147 + const Texture_ptr& reflectTex = s_reflection._rt->getAttachment(RTAttachment::Type::Colour, 0).texture();
148 148
149 149 VertexBuffer* vb = _impostor->getGeometryVB();
150 150