Good to know, so maybe i'll need new functions from minetest engine, i need to use OpenGL Stencil Buffer because i need to render the world with multiple viewpontis Look in the particles code src/script/lua_api/l_particles.cpp as a basic starting point (and follow his #include's) for adding script ...