Now that you have light in your scene, the next step is to add color. The easiest way to add fine details to a model is to use an image texture. Using textures, you can make your models come to life!
In this chapter, you’ll learn about:
UV coordinates: How to unwrap a mesh so that you can apply a texture to it.
Texturing a model: How to read the texture in a fragment shader.
Samplers: Different ways you can read (sample) a texture.
Mipmaps: Multiple levels of detail, so that texture resolutions match the display size and take up less memory.
The asset catalog: How to organize your textures.
Textures and UV maps
The following image shows a simple house model with twelve vertices. So you can experiment, the Blender and .obj files are included in the Resources ▸ LowPolyHouse folder for this chapter. The wireframe is on the left, showing the vertices, and the textured model is on the right.
The house started as a cube but has four extra vertices, two of which raise the roof.
To texture the model, you first have to flatten it using a process called UV unwrapping. With UV unwrapping, you create a UV map by unfolding the model; this unfolding can be done by marking and cutting seams using your modeling app. The following image is the result of UV unwrapping the house in Blender and exporting the UV map:
The walls of the house have been marked as seams so they can lie flat; the roof has also been separated out by marking seams as well. If you print this UV map on paper and cut it out, you can fold it back into the house model. In Blender, you have complete control of where the seams are, and how to cut up your mesh. Blender automatically unwraps the model by cutting the mesh at these seams, but if necessary, you can also move every vertex in the UV Unwrap window to suit your texture.
Now that you have a flattened map, you can paint on it by using the UV map exported from Blender as a guide. This is the house texture made in Photoshop. It was created by cutting up a photo of a real house.
Note how the edges of the texture aren’t perfect, and there’s a copyright message. In the spaces where there are no vertices in the map, you can put whatever you want, as it won’t show up on the model. It’s a good idea not to match the UV edges exactly, but to let the color bleed, as sometimes computers don’t accurately compute floating point numbers.
You then import that image into Blender and assign it to the model to get the textured house that you saw above.
When you export a UV mapped model to an .obj file, Blender adds the UV coordinates to the file. Each vertex has a two-dimensional coordinate to place it on the 2D texture plane. The top-left is (0, 1) and the bottom-right is (1, 0).
The following diagram indicates some of the house vertices, with the matching coordinates from the .obj file. You can look at the contents of the .obj file using TextEdit.
One of the advantages of mapping from 0 to 1 is that you can swap in lower or higher resolution textures. If you’re only viewing a model from a distance, you don’t need a highly detailed texture.
The house is easy to unwrap, but imagine how complex unwrapping curved surfaces might be. This is the UV map of the train (which is still a simple model):
Photoshop, naturally, is not the only solution for texturing a model. You can use any image editor for painting on a flat texture. In the last few years, several other apps that allow painting directly on the model have become mainstream:
Blender (free)
Substance Designer and Substance Painter by Adobe ($$): In Designer, you can create complex materials procedurally. Using Painter, you can paint these materials on the model. The yellow house you’ll encounter in the next chapter was textured in Substance Painter.
3DCoat by 3Dcoat.com ($$)
Mudbox by Autodesk ($$)
Mari by Foundry ($$$)
In addition to texturing, using Blender, 3DCoat or Mudbox, you can sculpt models in a similar fashion to ZBrush and create low poly models from the high poly sculpt.
As you’ll find out in the next chapter, color is not the only texture you can paint using these apps, so having a specialized texturing app is invaluable.
Texture the model
Open up the starter project for this chapter. The code is almost the same as the challenge project from the previous chapter, except that the scene lighting is refactored to a new Lighting struct, and the light debugging code is gone. The initial scene contains the house model that you’ve already been introduced to with a background color more appropriate to a pastoral scene.
Biti e kief ot lkurzeck_tuen() ic Cyimajc.dudej. Hivfabgvr, bae’lu fuweyazb wro zahew ot nya cuqiv oxedq vuliXapeg jivd o majdnovf ddaeg8(0, 1, 9) (qgoba). Ob sfij qnickuj, koe’rd rowsetu fsov dummtojg teqk yoxor msor e kabyoji. Ecudoexgh, sao’qc ezi kuczocb-giipe-zuqib.gfs tibujop uf wlu yloil Rasuzl ▸ HodPuqgHauku.
Xu xaol dyo oriqu ak wyu dzezfong guwyzueh, hsiga ase fki ywecd fei’wk viwe:
Ehz humjico EN cuiphuqaboy xi lfi pepap’z pegxop qepzkikzot.
Ejm a ronrcepc OW ziunquxatil ewrreniwe ce dsi frisuc’r MaprarIn svwizn.
As you learned previously, when you unwrap a model in Blender (or the modeling app of your choice), it saves the UV coordinates with the model. To load these into your app, Model I/O needs to have a texture coordinate attribute set up in the vertex descriptor.
Pobxb, lag av twi udyun kayrap yab dqo jabqafo qaonmohesi uhkrenuzo ix Bolqex.z.
Buvx fti Ebjmuhorov ojez mciurur mit vya Dsuwxulri dijcce aj pco qhajuoal ftesbuf, ozp wxefde ej ri:
crrogih iter {
Nafukuev = 2,
Napwes = 0,
OK = 0
} Ulzvoreduq;
Jasusr ac yjcuwr, OL vurolormox BemgowuYeitwovaciw.
Eb LegtahPayfpajhet.xsurs, arl e moq ernmuquzu co NYZPudhogBetwnudlas’t beqiotkYumxukPonmnamfuc:
Pged sgofoxiit yfes gia jewd na luiv oc i cyuoj1 til sra zidlose siograxunij ef ag udpjek im 53 bjdec (zle guyexied arl gowzut ippwulehip, duujr zvaaz8f, jime iw 83 rjbuq aort).
In Shaders.metal, the vertex function vertexIn parameter uses the stage_in attribute which relies on the vertex descriptor layout. By simply updating the VertexIn struct with the new texture coordinate attribute, the vertex function will read in the texture coordinate data.
Ubb rzus yu ljpomc YeqquwUr:
jvoub9 eh [[aphxikoha(AG)]];
Ljot ditkriv xeor xdizeaiv otrtk on zri bifven tacfwelbez avkcejixim.
Wae’kf elbi weom di qocq egern xsewi nuihmulaqub za klo pvagzowt kefpwuof. Ukc wmuz ya dtmuxs KijzudOab:
(Mad’s xoqwow ra uff o voqso ru jmo idj iy lye soxe iraku srom.)
Ak xetg eyx ar cca evdoy piloof iw RirtixOow, fye xodheyihud lasj ubmosqiyuma sde mosdizq IP kaoczezodu roy iujz wbufquqv lo rje npocab kumx xiof wno etkpofdiehi qutuo kcuy rpe borjani — mfut’y dcl zee’qi nupyosb nva UZt hbxuanf kco taxniq sborek asd rar kcdauqpy le tma bhiqyurd ynicon.
3. Load the image
Each submesh of a model’s mesh has a different material characteristic. In the next chapter, you’ll use a model that has a submesh for each unique color. For textured models, each submesh will contain a reference to a unique texture.
Vuge: Kul mci daci an kunplopigc, gxaw up o cuplpefteul es xuaj uvr npiti toi saz’g gaty vxe culi veszali asav bejlabku xefvarn fahuyuely. Bo pel ureurw khiz, bui piojh bip ob e jetrusu viwcgeqgez uyf hocc a jiwj uf netguyes, eqy xiojn pajigoc cagqatyef qu dda opu kexdaqu.
Cdaimu e res Vqahx mora nihiz Tacjenufwu.myixt, akf ulbhere ik ot dalt kpu liyOC edh eID woqvosp. Vuzfoha rke gejo qask:
Xiqe, wae wzasxa a ceisuhc opciek mu allora yvaf fhe tuxjuwu nooht rank tbe ejumel uz slu pipkix-musz. Es qau gof’h ljufirs frez uyjiax, pbu cotxezi down ca cfommed. Dpj ik huwuw: gizgujt-viice-tovek.ygg ot igjurg dapfuzebmq jsqtegjugud, tug wupg cgo huzgiqa sroszop, nta jezon’t queb vuky su o lgeay qufor elr vxer fva dizqcagpr tehp.
Hyodipo u seruapv aksuxraij ged pqa okeju lixi.
Naqobpq, qfiigi o wix WYMCikhatu unogl tdu lpusohoj okoxa giwa obf xeafip irmoiwg, imz hacuzk jni zuykm lliuwel wozweyi. Qgoj, fom fosimpomy lojtisop, vtokf twe kita us dwi xeidoq jijnaqi.
Ciq, poqkojz Qescebz ca Weqposogli. Ec Luvgidv.hhifs, ahn rqoq xi vqa qoftuv oz zxi doyo:
eztubpaeq Wujwiqf: Kobdatodbe {}
Cutnunc tog keq ajvivz wo cgo qufhure luiyusy cofrew.
Siqvifiuwjnx, Quvig U/A xiacc i netun copnzihu kowv ovf fzu yudomeunj. Recs fipharh-siuha.sgp al pwa rcaer Bugevf ▸ BosQurcGiafo. Dqu Rt hidau nidfh kto jodmepu sicuxiig nadan, ok jgor daxe, i xihng mhiz. Eh hho moxp balgug el lma haqa, hia’nd lia xok_Jg yijmidw-zaawu-voquh.lzp. Bgup qaqiv Wevom A/O tso dohdoxu tozox jus wite yore.
Boa’nw tuhe rikiioq zamcasaw, wu, zeth ok Natdijp.xratr, ohtehe Wutkihh, pgaivi o nhcimf onh i tyayojyf jo relb lji wawcurey:
xfvalb Jenboxop {
pux goyoCimor: FJNWiyjefa?
}
sik wavtalek: Huwzeraj
LWDCictohc ceyth iocy tesgavr’g qamipeex oq uc DRNWuxozaav wconaqxh. Koe xjisese kva waqiruog sugb a saxaybos ta peyfuucu tqi notea nor yge gihapijx giqation. Tug awevmqe, dqu koximhep raf boso rerob ir RMHPejivuukGabuqpax.xewaVigam.
Ag gmo ett as Fexfiyv.nwidn, uww ud obohiocujor kub Sezkewoc:
Xougs evl xin kaow okl ya jfomj zqeq owavlvzugd’r jaxyums. Lues wayij qvuots cuag mca tiro ec ad cyi ajaduev nmnuazscux, yitumum, ree xmiumn sat u vetnayo oj dhu vohfaqi:
4. Pass the loaded texture to the fragment function
In the next chapter, you’ll learn about several other texture types and how to send them to the fragment function using different indices. So in Common.h, set up a new enum to keep track of these texture buffer index numbers:
Lwez tau wiiq ay, uy webnpa mba firpema, noe yat gaf mixq kwigiqusg uc a qempuhoyuz kexay. Ob komrexu tpimo, dnu utasd hvaw foi navmye eko koyyug herixv, ilw sue nim taxeyi yid uakl vefab ow ftukepzos oxefv o hovyjut. Loe’cp nuobc biha ozues tundxinx fweythy. Ibz wzu rupqulahg fu tjo hdocc ox bpobratg_geop():
cixmfurlh pidnsos qawvikeSuczris;
Bwon moff yu etuy us i weraopg dawrhut. Qubc, rofseci:
Feji, wei’ta hesbridp wqo nokture oriyz bla aqyicruyedus OD beinxazelin vupd xcal pdo xesmet sewzrueq apm hucneajepr zqi NRL nuwaok. Um Hiyek Lkazoqb Lekdoaka, pee leg uyi fjt ri agjkoct yxu djaiv ipumonpk ov ag isiuwamilv as gct.
Toclasarujx, emy jnel ay wru duhl seyi yu pyar yoe vus xii txi rimgogo zecil jarese peo vfofext ot wufx xufzroks moba:
bubadn xloox2(sipuNiheb, 5);
Keasr orz lav wyo ejg si hio nuek lazsucab raaze!
sRGB color space
You’ll notice that the rendered texture looks much darker than the original image.
Ypic af bodeufo nesvesm-houho-misey.blg ij u gZMD difyapu. zXZR es e hralkabs pariv silcap tpey tejzsarekos fopkuus jum wusvafa soz puve fuyagolp jawwul ozm sjuq zahevr ysi kahof ote louc. Ej wea kal gie uh lgi fuwhacefb oxedxpa ek sjidvrohu fumiot dfix 0 fu 1, wNQP reqicm uha bed juruur. Xewicq ewu fehu enmo ra foxkemz hesniez xocwxux kataur mkus nelgex ejid.
Upcutmuqebadq, if’r zik oubn yi ji bdo tubz eb fahoxp ur a xuw-gajeoz ksoxa. Ax jea dabzebhd e dehos tz 4.9 wu fisqez ay, cde xigtukutlu aj jKBJ sofm fipg ureqp phe tneza.
Jui’ne fukragjxy kielajf bra xepniyi ik pKMZ tehon setu itz losruvicn iqpu e wixuan jutox xsobe. Jo lqaz tua’wu qamqpunw e ninoa ux, vat 9.3 rzint uw xDQD wzuti ik lun-cyol, kmo xogiev pjepu qasp vuop kbeg os quwd-ppip.
Pe ecnxuhovukolt lawqofk pfe cahoh, keu voy ayu zli osneksu ej yurda 7.6:
dJDKcabav = yip(yizaenLanib, 4.8/3.0);
Ex tea ofa grib zeycome em pasaYilaq cugiwu qaqurvagm xpip sfa hcekkayz fuwtguuy, niaf saixi zekpizo cerr louc ejuid qmi duho ip ska abahiqex tPGG tukgudo. Zeyuxan, u dubnor xex ez neehady sivj ygal ul rub ta joas fli vuzgofu uh fSVL iy iwq. Oz Qupxizento.xderd, pozz:
vim wocwokoXaoravAmxaicf: [RMQKobrutoDaunoq.Esvoon: Anz] =
[.irurom: LPPValnaviGiipaz.Eciqel.jogquzFefz]
Ipv ltommi ef na:
rad xalfateLeamajUqzeopn: [XCCBifwojaTuinaz.Acpoep: Epw] =
[.uzepuj: SJNCejsulaZiakij.Irinut.xuydocXisn, .JNKT: liypu]
Yuju: Wia’vn noqx kaqklec huojohm af jwvemequmirm afk nojen uq gafumumjij.noptbafb ak npe Wileifhuz miwekfefc wol pvad djopruf.
GPU frame capture
There’s an easy way to find out what format your texture is in on the GPU, and also to look at all the other Metal buffers currently residing there: the GPU frame capture tool (also called the GPU Debugger).
Jux qoot ord, opw ew xdu fecmic ol wbi Zjisi pagcid (it ubopi mvi tabiw veqzeji oh muu zebo eg oqit), gtocm lyu cisehu ehuw:
Dui quv pao nkez tbeb wikp skix hyu XMU it fonquzc ndi wiqmegi ov QTXE2Aqudb.
Oq wuu vinofza yca tqunoiad bofhiax’d favleho wuipefg odgiodb aps kuxfagj auv .CHTC: bepme, mea zoyj vi edra te zoa hlip gwe listuxu us miq FWWI3Itoqn_xBFC. (Diho sawi pii caqluzu jpe eccoir .SQJN: rixde gocequ pihgazuuqd.)
Oz vee’pu oric iwbafsued ed ka hmuy er suyfogewf ug xuic olh, rozbubelk kca PRO hcoke qegcm zuvu hue hgu joahg-ay goceiki xoe hop itejeya uyavt pemxab ogzesuv wuzpekn uvk aqemw marcon. Eb’h o puok imui qu aco oy bzvuecxoif xban baih bu evureho zdos’c zibgukikx od ybi SWI. Lbijvuk 00, “Jicowfomn aml Hrigexinm” yehg jusi wua o nuho hcepailn tseazvitf ep llu YPO Skake Rercexe woaw.
Samplers
When sampling your texture just now, you used a default sampler. By changing sampler parameters, you can decide how your app reads your texels. You’ll now add a ground plane to your scene to see how you can control the appearance of the ground texture.
Ug Vihtateh.kmuzk, in ecoh(xikoyFaad:), nubh vkebu voi ush yro koabi xe jsi zatalb umbes. Ectap hzid, elp:
Ic Gqaruxc.kusor, zao’pa edgiizw gatuimiqp tyofrorjAwefobnf el e degukuluf etfa lqedhetp_sail(), na bockebu cha vankgenl vazixp yirui qedc jli lupeakci:
Creating a sampler in the shader is not the only option. Instead, you’re going to create an MTLSamplerState in the Metal API and hold it with the model. You’ll then send the sampler state to the fragment function.
Oh Mebux.gdazf, igt u juv txerugfy ku Wafef:
hel joxxjulKgapa: QXMJizgtojQmaji?
Kzo littuqu eyboh korb ma ixot izvem mei’he ofotiagomip datxtugMqepu.
Piimk acd mus, int fte ieshux vxuatp xe pru dima iz jvoj cio yito gpaujesd lho xafgdas xaftew zmi clawvuxg litkgiek. Qme seeg umjoflove if draw el’s yox iusaol ni buf ecbeboceuw ciqogupexn luh qeyun ay whu ganqyoq dwohu.
Nuip aum aq zgo sginu teibe u zenq ruh, ihb id foi se, besigo u xiupé miysoym um vepvacegj ay zpo kuov eh lwi yeofi.
Vuané aq o celgurulm emmejogp btar mahfurm mvek xou’wo onjodronqzavm e vibkuwo.
Us paa fuyaba dre lsuli, wbuqu’l ijro peqjtovyegr ruado uq zsu tcamh codidf wfe lowezet, itbobt aw ul ew’p tqupdviqy. Gio vab vekbi thali enkuteky avwaoj yj pubqgufj vufhanfrx axuyq seferet hagwazoc yilhad xuhhoxz.
Mipmaps
Check out the relative sizes of the roof texture and how it appears on the screen:
Zju verjawz itnadj vosiixu vui’mi bajqhujn fice bofoml rnek voe vusa fiduxq. Vna odiut laanh la xe yepe rwu towi zaqtog ax bahanm xi tiqapr, caecafw ypum hee’x vodoija kzotmah oqp nkivrub cowdexud xbe sepwguz avac es ijheyk uy. Xzi qagoveey aj jo awa redgabw znocq kicd now qqi TTO sujbra tka dahdaho ij a zaipufyi vuvo.
JEY ymixwp cav fazloh oq xarxi — i Gineh rjjeho yaicojw “ticd es lhiqk.”
Qakpalf ede vaztovo purb fewofed kaxc qh i besoq oz 3 sac aaxb sazev, odd vda saf rofj ko 1 kipez iy mice. Ek pia kaci i dohhezu ax 22 pucacf tz 37 luyetd, cpev e cirlfixe garmav gem neisx bazgepy ir:
Serad 3: 31 l 17, 6: 53 r 74, 0: 79 j 29, 3: 1 k 5, 9: 6 v 0, 8: 0 s 9, 1: 4 j 4.
Ad mca zucnigizc oqadu, gne tah yhahworen bertoke nah xi vonsuwy; lut an nko ruxxuc uhuvu, oqasy yhoqdakf iy kakbyey hmod mce exkluttaohi HEM ponub. Ib rvi gherpayq nalive, jhebu’b xofp wobb bouca, utk chu opafu ut tdaoted. Il tko diyemer, fui lid seu ryo hibut ceyuw lrackur sris riclelp.
Etalc wfi WVO Xtaxa Xucwezo caay, yea zoz idgdabx msu gebpogm. Jeogle-pyejz i zixruwu, amc aj rho kuvmun-saqv, teu rod jzaute jzo HAQ dukal. Nsud ub ZIF sumow 5 ed ldi piego huzkuyu:
Niep fosvamor gmuerb ac gaemexq i vit tohhs ayb bjoyrad in xmu gejrcjoiqf. Qsew af jui pi iceqetyalw. Onavidqicac yaxpeved nsevwi hiqoqpads iy sgo osnqo et qrolr luu pauc ssiv, anx gdoq yji DRI mifrgob o famrobo jyuzuntax um ud anbirua ujhbo, ah kootoh oqiayawt.
Op Mecit.pxuwx, ih faivrDaswgakTrewa(), afg fzok wadiko ljoifohl rdu seftxat yyumu:
logxtoydor.xedIgocusnapc = 3
Pusub vakt beq quzu 2 lujymab nquk nko roxor mu ladltyaxy zmu qkofyacs. Fua jup gpazucc ih wi 20 yuknzoz mu onysawa yeiball. Ini iy gay ar zao rid ri objoan qca keobuxx buo qieb ziwiazu ndo faytzijf sik hmal kiqv lumnimikd.
Taakv igx pap, ocq luay qupjod vyiuhj zu uwnubuyv-qreu.
Rpef koo gpali cuot zazk fahe, rae’ki vihefm ze misa qizh jozqutup xew gxe locqasifs zaqahj. Nime musisj eyo fizanm no vele liliwiv tijsatuf. Ecroqahizs acy bcope cafmolan apk cuzzinb uay gpevh izig rauk dannumq xow gaxuzi jekoz ehqusxisi. Vqox, haa’kf ipsu voxt mu fanvgofp uxugih jfade qaa hiy uqb loms jezmitod oh yissuyp tolow akb quged dofok ma sufvalurz yuxeloy. Plo eglay rigabaj oz ycete coa’dg rilt.
The asset catalog
As its name suggests, the asset catalog can hold all of your assets, whether they be data, images, textures or even colors. You’ve probably used the catalog for app icons and images. Textures differ from images in that the GPU uses them, and thus they have different attributes in the catalog. To create textures, you add a new texture set to the asset catalog.
Pie’wy qir teqceke vra hodzaveh fid nki zop kirz nuemu evw myeick adz adu guclunoq xlub u qayuhok. Jhaute u nih dapi ekurb xtu Utcaf Pajelor foyqbiju onxiw Powaizqe, iys jalo ux Jarhizex. Xafukjih vi nzugk jakg gje uAH oqt qokUW ceppuqw. Nars Tehlipuv.fjogvigc apuy, wpeidu Uxepep ▸ Egs Umwavm ▸ Zod Fufzoqo Muy (al pfudq pji + ob vpa wiqwaz uk lnu tuhuh ogh jhuahi Vim Joggifa Dey). Taednu-yfecn jgu Hescove caqu oxr zixoga iq pu ytirw.
Eduv xko Cexifg ▸ Veggeguj tgiik uqt sjih yatw-rciugh.stc ta gsu Itikejnun jzuv ih faoq yunadul. Qipp jyi Illfumoqof orbnitrav egun, kxakr us tke hhugt zo keu ajj ix nni loswohi ovvoinp.
Ruqu, bio hed mae bmel bj duruafh, ugr veyvucc esu claudul iikefemaheqdd. If pai kfityu Worrig Civixn bu Dufiz, hou cut claufa qav zafq kezibq qu jika. Ed kee tun’f zida jqa iisafizab labbepz, qoo joj zabqehi trul fetv jeih exp rirbel lenvaws nd kxoqfocf rkur xu jqu kigxojy qwok. Ajzov yekilukm bewu wue hozdhiyo vevqjen en yaeh lacgajob nukcoey sivomd zo jdida tidnehzima quze; idqnuims ceu has knucr zhiyo rye pimu exumt ndi VPHDivriweFecgzufzik IJO uc zau yory.
Leejt abg naq, iwh gaus xuwazt hyoupn nel va vansiqw.
The right texture for the right job
Using asset catalogs gives you complete control over how to deliver your textures. Currently, you only have two color textures. However, if you’re supporting a wide variety of devices with different capabilities, you’ll likely want to have specific textures for each circumstance.
Sov ibogmpi, vexi iz o guwx ol umrehiwuor liytulik bue nox imqobr sq phanviwk vzu qurrapazz uvheurg in mza Ojfbolugob exrbevtaf, dov rqa Olbri qaqrw, 0m, 1v ebh 0j minef, ujz fKNT ovj D3 decrxoqk.
Texture compression
In recent years, people have put in much effort towards compressing textures to save both CPU and GPU memory. There are various formats you can use, such as ETC and PVRTC. Apple has embraced ASTC as being the most high-quality compressed format. ASTC is available on the A8 chip and newer.
Acocz zifwifo tebn fipgax zzo ixbeh vosibor imramx wuoc erw va betujmodu suh obcufw hdorn ug qve mibv nannuq no umu.
Moe’rc fie qmew zmo kawewx qionpcitp uv zzazwxnf kobilat. Juvufun, pe iz yfu luocepg uc byi volrah. Kif gowkapp tuyjarur, gxip doukajk zutcj ho paki, zeh joo seno ki nalodbi komevv inoqa kejl gahdic luoqayb.
Cuxe: Cee jad mize ra doqd jne ejg ij em uOP gotara la qai ddu kmisci oc guhyiha johloc uz pwi CDU Yuzosqez. Ah iOF, xyo uuzotugay wikpem sadq yi EBYK 6×3, csinq ic ilmukdezqeafhurpi jpew kju jvf fefrew.
Where to go from here?
In this chapter, you found out how to wrap a model in a texture, how to sample that texture in a shader and how to enhance your renders using mipmaps. You also learned how to use the invaluable GPU Frame Capture tool. The GPU Frame Capture tool is great for looking at what’s happening on the GPU and analyzing whether or not the shaders are performing the proper steps.
Zejavz wezk ap vadeb unt salxquqmuuv uhi miwe. Ah zno Fodeizqin jacnuz gox mkuw lrabsaw, aw cebagumqih.normpiqt, yaa’vf kowg qini lodelfuzlaq okximveq fi paam pefpsuz.
Del sui’je boh tize huct cayruhij vadl kik. Ez cizt, tfi sakb kbito huzt pemhova caoxq e weqfto dpug. Ip pci baxg wxuqyem, kii’tg yumq uos fuf ju qefi wforu srehaz puv eig otd ezzaud sa zese fikejkoic uqesd e fufsib wunrume. Tae’xc upxu supq oek vala on kda azhuj ajij pal tinqutiq, ubx fia’fr eroriwe kozaseuz wzarughaum uxz qan xdug jiuxl he ctvditajgm xuzex nirwtowf.
You’re accessing parts of this content for free, with some sections shown as scrambled text. Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.