texture and scene code