资源描述:
《[WebGL:Up.and.Running(2012.8)].Tony.Parisi.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、WebGL:UpandRunningTonyParisiWebGL:UpandRunningbyTonyParisiCopyright©2012TonyParisi.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromo
2、tionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editor:MaryTreselerProofreader:JasmineKwitynProductionEditor:IrisFebresIndexer:JayMa
3、rchandCopyeditor:AudreyDoyleCoverDesigner:KarenMontgomeryInteriorDesigner:DavidFutatoIllustrators:RobertRomanoandRebeccaDemarestAugust2012:FirstEditionRevisionHistoryfortheFirstEdition:2012-08-02FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449323578forreleas
4、edetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.WebGL:UpandRunning,theimageofachrysaora,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirpro
5、ductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorsassumenoresponsibilityforerro
6、rsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.ISBN:978-1-449-32357-8[LSI]TableofContentsForeword.....................................................................viiPreface.....................................................................
7、..ix1.AnIntroductiontoWebGL....................................................1WebGL—ATechnicalDefinition23DGraphics—APrimer43DCoordinateSystems4Meshes,Polygons,andVertices4Materials,Textures,andLights5TransformsandMatrices6Cameras,Perspective,Viewports,andProjections7Shade
8、rs7TheWebGLAPI9TheAnatomyofaWebGLApplication10TheCanvasandDrawingContext10T