bialylis/ThickRedLine: Thick Red Line - GitHub

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

ThickRedLine. Thick Red Line - drawing thick lines with constant on-screen width independent of perspective, for SceneKit with metal shaders. Example:. Skiptocontent {{message}} bialylis / ThickRedLine Public Notifications Fork 1 Star 43 ThickRedLine-drawingthicklinesforSceneKitwithmetalshaders License MITlicense 43 stars 1 fork Star Notifications Code Issues 0 Pullrequests 0 Actions Projects 0 Security Insights More Code Issues Pullrequests Actions Projects Security Insights bialylis/ThickRedLine Thiscommitdoesnotbelongtoanybranchonthisrepository,andmaybelongtoaforkoutsideoftherepository. master Branches Tags Couldnotloadbranches Nothingtoshow {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default 1 branch 0 tags Code Clone HTTPS GitHubCLI UseGitorcheckoutwithSVNusingthewebURL. WorkfastwithourofficialCLI. Learnmore. OpenwithGitHubDesktop DownloadZIP LaunchingGitHubDesktop Ifnothinghappens,downloadGitHubDesktopandtryagain. LaunchingGitHubDesktop Ifnothinghappens,downloadGitHubDesktopandtryagain. LaunchingXcode Ifnothinghappens,downloadXcodeandtryagain. LaunchingVisualStudioCode Yourcodespacewillopenonceready. Therewasaproblempreparingyourcodespace,pleasetryagain. Latestcommit   Gitstats 12 commits Files Permalink Failedtoloadlatestcommitinformation. Type Name Latestcommitmessage Committime readme_images     LICENSE     LineDrawing.swift     README.md     shaders.metal     Viewcode README.md ThickRedLine ThickRedLine-drawingthicklineswithconstanton-screenwidthindependentofperspective,forSceneKitwithmetalshaders Example: letgeometry=SCNGeometry.lineThrough(points:[SCNVector3(0,0,0),SCNVector3(0,10,0),SCNVector3(10,10,0)], width:20, closed:false, color:UIColor.red.cgColor) letnode=SCNNode(geometry:geometry) scene.rootNode.addChildNode(node) Parameters: points-arrayofSCNVector3indicatingpointsontheline width-(int)widthoflineinpoints closed-(bool)iflineshouldforaloop color-(CGColor)coloroftheline mitter-(bool)iflineshouldformasharpmitteratthejoints.FeatureisWIP-notsupportedwithclosed(thefirstandlastjointwillnotbemittered)andthereareartefactswhenanglebetweenthelinesistoosmall About ThickRedLine-drawingthicklinesforSceneKitwithmetalshaders Topics metal shaders scenekit swift4 scenekit-framework Resources Readme License MITlicense Stars 43 stars Watchers 2 watching Forks 1 fork Releases Noreleasespublished Packages0 Nopackagespublished Languages Metal 70.9% Swift 29.1% Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.



請為這篇文章評分?