Texturing works

using wrong-scope variable