updated texture 3D controller for variable texture