webgl full patch script