for i in range(0, len(tex.tex_coords), 3): coords.extend(tex.tex_coords[i:i+3] + (0.125 / 2,)) batch = pyglet.graphics.Batch() group = graphics.TextureBindGroup(tex.id) batch.add(4, GL_QUADS, group, ('v3f', [-10, 0, -10, 10, 0, -10, 10, 0, 10, -10, 0, 10]), ('t4f', coords)) ground = core.Object(batch) refl = effects.Reflection(ground=ground, camera=context.camera) context.camera.effects[:] = [refl, fog] print """ You should see some objects in fog and reflections below them. """ while not w.has_exit: pyglet.clock.tick() w.clear() w.dispatch_events() context.render() w.flip() w.close()