implement #4044 (Lua-bindable normal buffer)