This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <title>WebGL Example</title> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
| <script> | |
| function useShader(gl, program, scriptId) { | |
| var shaderScript= document.getElementById(scriptId); console.log('shaderScript: ',shaderScript); | |
| var shaderType= gl[shaderScript.type.replace(/.*\//,'')]; console.log('shaderType: ',shaderType); | |
| var shader= gl.createShader(shaderType); console.log('shader: ',shader); | |
| gl.shaderSource(shader, shaderScript.text); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var docRef = app.activeDocument; | |
| cTID = function(s) { return app.charIDToTypeID(s); }; | |
| sTID = function(s) { return app.stringIDToTypeID(s); }; | |
| function newGroupFromLayers(doc) { | |
| var desc = new ActionDescriptor(); | |
| var ref = new ActionReference(); | |
| ref.putClass( sTID('layerSection') ); |
OlderNewer