createProgramFromScripts is not defined问题解决方案
你应当先引用一个js库:webgl-utils.jsgit源码:http://greggman.github.io/webgl-fundamentals/webgl/resources/webgl-utils.js这个网址你可能打不开,所以我贴出了源码/* * Copyright 2012, Gregg Tavares. * All rights reserved. * * Redistribution and use in source and binary forms, with