webgl example one - gists · GitHub

文章推薦指數: 80 %
投票人數:10人

APP.gl.compileShader(fragmentShader);. var vertexShader = APP.gl.createShader(APP.gl.VERTEX_SHADER);. APP.gl.shaderSource(vertexShader,. document. Skiptocontent Allgists BacktoGitHub Signin Signup Sign in Sign up {{message}} Instantlysharecode,notes,andsnippets. bringhurst/webglexampleone CreatedFeb28,2011 Star 0 Fork 0 Star Code Revisions 4 Embed Whatwouldyouliketodo? Embed Embedthisgistinyourwebsite. Share Copysharablelinkforthisgist. Clonevia HTTPS ClonewithGitorcheckoutwithSVNusingtherepository’swebaddress. LearnmoreaboutcloneURLs DownloadZIP Raw webglexampleone ThisfilecontainsbidirectionalUnicodetextthatmaybeinterpretedorcompileddifferentlythanwhatappearsbelow.Toreview,openthefileinaneditorthatrevealshiddenUnicodecharacters. LearnmoreaboutbidirectionalUnicodecharacters Showhiddencharacters #ifdefGL_ES precisionhighpfloat; #endif voidmain(){ gl_FragColor=vec4(1.0,0.0,0.0,1.0); } uniformfloatpointSize; attributevec2vPosition; voidmain(){ gl_PointSize=pointSize; gl_Position=vec4(vPosition,0,1); }

Signupforfree tojointhisconversationonGitHub. Alreadyhaveanaccount? Signintocomment Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.



請為這篇文章評分?