texturing.attach(2, occlude_target.get_target_texture(RENDER_COLOR));
unsigned seed = 1;
- rotate_lookup.storage(RGBA, 4, 4);
+ rotate_lookup.storage(RGBA, 4, 4, 1);
rotate_lookup.set_filter(NEAREST);
unsigned char data[64];
for(unsigned i=0; i<16; ++i)
shdata.uniform("source", 0);
shdata.uniform("curve", 1);
- curve.storage(LUMINANCE, 256);
+ curve.storage(LUMINANCE, 256, 1);
curve.set_min_filter(LINEAR);
curve.set_wrap(CLAMP_TO_EDGE);
texturing.attach(1, curve);
update_interval(1),
update_delay(0)
{
- env_tex.storage(RGB, size);
+ env_tex.storage(RGB, size, 1);
env_tex.set_wrap(CLAMP_TO_EDGE);
env_tex.set_min_filter(LINEAR);
depth_buf.storage(DEPTH_COMPONENT, size, size);
else
{
tgt.texture = new Texture2D;
- tgt.texture->storage(pf, width, height);
+ tgt.texture->storage(pf, width, height, 1);
tgt.texture->set_filter(NEAREST);
tgt.texture->set_wrap(CLAMP_TO_EDGE);
fbo.attach(att, *tgt.texture);
depth_buf.set_compare_enabled(true);
depth_buf.set_compare_func(LEQUAL);
depth_buf.set_wrap(CLAMP_TO_EDGE);
- depth_buf.storage(DEPTH_COMPONENT, size, size);
+ depth_buf.storage(DEPTH_COMPONENT, size, size, 1);
fbo.attach(DEPTH_ATTACHMENT, depth_buf, 0);
fbo.require_complete();