X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fsky.cpp;h=d9c95b3bd79839fed84d1ad3f06235a4f5ac626e;hb=e92de029768eef5f0fd744329e589161b46d0762;hp=a210efc94f578e35c7593fab4277d3150ac4575e;hpb=ce3658993ce2f6b7527a04a36a5e1af349c6f2e9;p=libs%2Fgl.git diff --git a/source/effects/sky.cpp b/source/effects/sky.cpp index a210efc9..d9c95b3b 100644 --- a/source/effects/sky.cpp +++ b/source/effects/sky.cpp @@ -4,6 +4,7 @@ #include "mesh.h" #include "renderer.h" #include "resources.h" +#include "texture2d.h" #include "sky.h" using namespace std; @@ -14,10 +15,10 @@ namespace GL { Sky::Sky(Renderable &r, Light &s): Effect(r), sun(s), - transmittance_lookup(128, 64, (RENDER_COLOR, RGB16F)), + transmittance_lookup(128, 64, (COLOR_ATTACHMENT,RGB16F)), transmittance_shprog(Resources::get_global().get("_sky_transmittance.glsl.shader")), transmittance_lookup_dirty(true), - distant(256, 128, (RENDER_COLOR, RGB16F)), + distant(256, 128, (COLOR_ATTACHMENT,RGB16F)), distant_shprog(Resources::get_global().get("_sky_distant.glsl.shader")), fullscreen_mesh(Resources::get_global().get("_fullscreen_quad.mesh")), backdrop_shprog(Resources::get_global().get("_sky_backdrop.glsl.shader")),