Render modes: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (licodomace)
 
(29 intermediate revisions by 18 users not shown)
Line 1: Line 1:
[http://www.sghq.com/catalog/images/banners/new/dellodron.html yuroz] [http://www.libertytitlecorp.com/templates_c/150/sitemap.html http] [http://www.davidgrover.com/gallery/albums/July12/alviqa.html magic vines] [http://www.fineartpost.com/gallery/albums/album03/cvartro.html warehouse inventory] [http://justgemsofsa.net/skin_cache/cacheid_1/hendeh.html herramientas] [http://www.booknestguides.com/fishysearch/images/flags/thumbs/rolboleto.html ft] [http://www.booknestguides.com/fishysearch/images/flags/thumbs/boccnaet.html race truck for sale] [http://www.trpservices.com/userfiles/image/001/xeltnoxel.html fifa 2005] [http://www.apxuf.org/e107_docs/help/English/Files/index.html link] [http://501qld.com/forum/includes/sql/dump/fokrolloi.html subic bay beach resort] [http://www.autosafetymagnets.com/blog/wp-content/uploads/images/bochivi.html email greeting cards] [http://historicmatewanhouse.com/guestbook/upload/preview/pics/varc4t.html buy diazepam online] [http://501qld.com/forum/includes/sql/dump/ouergollo.html pygmy date palm] [http://www.sturmgrenadier.com/invision/skin_cache/cacheid_5/enzfuf.html new zealand vacation] [http://www.sturmgrenadier.com/invision/skin_cache/cacheid_5/incota.html 69 position clips] [http://www.usedhomeschoolcurriculum.com/Themes/default/fonts/Candice/gif/getdom.html bronze age pictures] [http://www.1800topsoil.com/blog/wp-content/uploads/images/racfevb.html rajdoot motorcycles] [http://www.davidgrover.com/gallery/albums/July12/ricinb.html fibromyalgia treatment] [http://blog.pandorabraceletsusa.com/wp-content/themes/intrablog/images/icons/c4tfid.html morocco shrine temple] [http://marketingop.us/wp-content/uploads/2006/07/caolodel.html support.dell.com] [http://www.jasonmichaelbrown.com/search-engine-marketing/images/domdarhen.html soybean oil press] [http://www.squadwerks.com/knowledge_base/admin/images/thumbs/fevtrfa.html neck exercises] [http://wiicentral.net/orders/images/images/vinoxfire.html metalica enter sandman] [http://www.usedhomeschoolcurriculum.com/Themes/default/fonts/Candice/gif/faczelg.html mercury auto insurance] [http://historicmatewanhouse.com/guestbook/upload/preview/pics/laacbob.html webcam sex show] [http://www.davidgrover.com/gallery/albums/July12/aceltaa.html milwaukee parking tickets] [http://www.sturmgrenadier.com/invision/skin_cache/cacheid_5/relrob.html g spot explanation] [http://501qld.com/forum/includes/sql/dump/fixpasq.html space terms dictionary] [http://www.jasonmichaelbrown.com/search-engine-marketing/images/sedace.html platform pump] [http://501qld.com/forum/includes/sql/dump/chinrs.html nasm] [http://www.autosafetymagnets.com/blog/wp-content/uploads/images/oufial.html information society] [http://www.1800topsoil.com/blog/wp-content/uploads/images/ricalzar.html monkey cages] [http://www.jasonmichaelbrown.com/search-engine-marketing/images/nrnoricac.html pamela andeson] [http://blog.pandorabraceletsusa.com/wp-content/themes/intrablog/images/icons/fokfamex.html bebe] [http://blog.pandorabraceletsusa.com/wp-content/themes/intrablog/images/icons/chinetao.html precedently] [http://blackacres.net/forum/images/avatars/gallery/pics/chizelv.html harley chicks flashing] [http://www.sturmgrenadier.com/invision/skin_cache/cacheid_5/sitemap.html link] [http://www.smartfindsmarketing.com/blog/wp-content/uploads/avatars/troctro.html electrophoretic techniques] [http://www.booknestguides.com/fishysearch/images/flags/thumbs/monfiquaf.html exclusivity contract sample] [http://www.fineartpost.com/gallery/albums/album03/darvarde.html boyd coddington] [http://wiicentral.net/orders/images/images/trocoloen.html online grocery stores] [http://www.usedhomeschoolcurriculum.com/Themes/default/fonts/Candice/gif/darracace.html shuffleboard champion] [http://www.rides4u.com/images/rides/thumbs/c4ttrpas.html beach home] [http://yellowshoe.com.au/tips/wp-content/themes/yellowshoe/picture/alvarl.html quilted bag] [http://blackacres.net/forum/images/avatars/gallery/pics/brmonxlet.html msm cream] [http://blog.pandorabraceletsusa.com/wp-content/themes/intrablog/images/icons/xroplin.html afcu] [http://www.usedhomeschoolcurriculum.com/Themes/default/fonts/Candice/gif/necoaltrq.html 8x dvd rom] [http://peopleit.net/store/admin/images/logo/thumbs/delbrquaa.html tatoo art] [http://www.jeanwise.org/tmp/views_c/cache/quahenf.html no go area] [http://www.squadwerks.com/knowledge_base/admin/images/thumbs/dombasf.html dj kay slay mixtape] [http://www.1800topsoil.com/blog/wp-content/uploads/images/ergetelt.html alfa romeo fan club] [http://www.squadwerks.com/knowledge_base/admin/images/thumbs/relfuacel.html california semi tractor trailer accident attorneys] [http://autographshop.com.au/category/uploadedfiles/thumbs/getlatac.html hoteles zaragoza] [http://justgemsofsa.net/skin_cache/cacheid_1/nrnrcnade.html verifone] [http://www.booknestguides.com/fishysearch/images/flags/thumbs/fokrefaqa.html along comes lyric mary] [http://autographshop.com.au/category/uploadedfiles/thumbs/alenol.html brown chris worlds] [http://historicmatewanhouse.com/guestbook/upload/preview/pics/dronvar.html aston martin] [http://peopleit.net/store/admin/images/logo/thumbs/alnrqu.html orgies] [http://www.trpservices.com/userfiles/image/001/loricqasl.html mixtape lyrics butch walker] [http://ka-lan.com/gallery/albums/userpics/10002/dronfokla.html norton antivirus 2005 cd key] [http://www.sghq.com/catalog/images/banners/new/fibasdea.html 3m company] [http://bubs-bibs-n-burps.com/oscommerce/includes/languages/english/images/pics/eltfevolo.html akshay kumar] [http://peopleit.net/store/admin/images/logo/thumbs/bugboci.html latina fuck] [http://www.rides4u.com/images/rides/thumbs/gettrocb.html car show girls] [http://bronzesnake.com/shop/images/skin/bugcata.html demetrios wedding dresses] [http://www.jeanwise.org/tmp/views_c/cache/eltolod.html pokemon hentai sex misty] [http://www.jeanwise.org/tmp/views_c/cache/sainpln.html private schools for boys] [http://www.fineartpost.com/gallery/albums/album03/trocfe.html nobodys angel] [http://www.jasonmichaelbrown.com/search-engine-marketing/images/bocrel.html new mexico real estate agent] [http://www.trpservices.com/userfiles/image/001/darfok.html free boys in briefs] [http://bronzesnake.com/shop/images/skin/dronhe.html brown chris number phone] [http://blog.pandorabraceletsusa.com/wp-content/themes/intrablog/images/icons/ouchiri.html plymouth locomotives] [http://www.davidgrover.com/gallery/albums/July12/fierel.html grandma moses] [http://autographshop.com.au/category/uploadedfiles/thumbs/bugdarp.html display boxes] [http://www.uppercanadaplayhouse.com/ssp_director/albums/album-2/en/golalqua.html wicker] [http://www.rides4u.com/images/rides/thumbs/olocnatr.html my space generator site myspace.com] [http://www.booknestguides.com/fishysearch/images/flags/thumbs/etmexdel.html car tinting] [http://autographshop.com.au/category/uploadedfiles/thumbs/c4tfumo.html hairy pussy] [http://justgemsofsa.net/skin_cache/cacheid_1/allavi.html halloween pitchers] [http://www.thenetstudyguide.com/blog/wp-content/uploads/images/fanode.html smart nutrition] [http://www.jeanwise.org/tmp/views_c/cache/foksitz.html itasca rv] [http://www.rides4u.com/images/rides/thumbs/bugfokcn.html wi fishing canoes] [http://www.squadwerks.com/knowledge_base/admin/images/thumbs/sitcnabug.html chandler arizona homes] [http://www.apxuf.org/e107_docs/help/English/Files/cabugsedq.html hong kong tailor] [http://ka-lan.com/gallery/albums/userpics/10002/nrqasin.html sex machines] [http://bubs-bibs-n-burps.com/oscommerce/includes/languages/english/images/pics/wacelra.html brian westbrook] [http://www.davidgrover.com/gallery/albums/July12/cnaplo.html mikes apartment samples] [http://www.smartfindsmarketing.com/blog/wp-content/uploads/avatars/rolvarr.html courier post] [http://www.sturmgrenadier.com/invision/skin_cache/cacheid_5/xplcnaol.html cum eater galleries] [http://www.jeanwise.org/tmp/views_c/cache/sazarchio.html laughlin, nevada] [http://peoplehosting.com.au/sitedesigner/sitebox_temp/cache/sitemap.html sitemap] [http://peoplehosting.com.au/sitedesigner/sitebox_temp/cache/goldoma.html ewa sonnet] [http://historicmatewanhouse.com/guestbook/upload/preview/pics/fainfokta.html beauti control] [http://www.squadwerks.com/knowledge_base/admin/images/thumbs/zengetbod.html new home for sale marietta georgia] [http://www.squadwerks.com/knowledge_base/admin/images/thumbs/riczhensa.html olivegarden.com] [http://www.holisticvitamins.com/shop/images/large/dvd/thumbs/bocrac.html weighted vest for autistic child] [http://www.sghq.com/catalog/images/banners/new/coenbug.html sherwood park alberta newspaper] [http://peopleit.net/store/admin/images/logo/thumbs/chinoch.html trip train] [http://www.usedhomeschoolcurriculum.com/Themes/default/fonts/Candice/gif/trnrace.html atlanta airport] [http://yellowshoe.com.au/tips/wp-content/themes/yellowshoe/picture/relbret.html 2wire usb remote ndis ethernet] [http://oyido.net/blog/wp-content/uploads/2007/03/zqasqas.html book lists] [http://www.latestdiscountvouchers.co.uk/rss/sitemap/reldro.html rc micro helicopter carrying case] [http://www.usedhomeschoolcurriculum.com/Themes/default/fonts/Candice/gif/zkoladomz.html banner design] [http://www.squadwerks.com/knowledge_base/admin/images/thumbs/monrolze.html wauconda community bank] [http://www.thenetstudyguide.com/blog/wp-content/uploads/images/mexdara.html phoenix technologies bios update] [http://www.libertytitlecorp.com/templates_c/150/sedorlas.html lapband] [http://historicmatewanhouse.com/guestbook/upload/preview/pics/orsedg.html college sex] [http://www.trpservices.com/userfiles/image/001/rolsaacin.html marzipan candy] [http://www.autosafetymagnets.com/blog/wp-content/uploads/images/rolerv.html discount dive gear] [http://daintreehermitcrabs.com/home/conf/profiles/files/fokrice.html aviation glasses] [http://www.latestdiscountvouchers.co.uk/rss/sitemap/saricchif.html colorado river] [http://bubs-bibs-n-burps.com/oscommerce/includes/languages/english/images/pics/troctrgol.html detail.html] [http://www.jasonmichaelbrown.com/search-engine-marketing/images/tafuinvio.html foliculitis] [http://www.1800topsoil.com/blog/wp-content/uploads/images/zdesacd.html little johns pizza] [http://www.knifeshq.com/board/images/enacalta.html clavier orchestres] [http://justgemsofsa.net/skin_cache/cacheid_1/mongetmex.html snowblowers] [http://autographshop.com.au/category/uploadedfiles/thumbs/cabocn.html nokia phones] [http://www.latestdiscountvouchers.co.uk/rss/sitemap/getboc.html whiteheads] [http://www.booknestguides.com/fishysearch/images/flags/thumbs/orroino.html new drum and bass tunes] [http://www.uppercanadaplayhouse.com/ssp_director/albums/album-2/en/savidarro.html weil] [http://www.latestdiscountvouchers.co.uk/rss/sitemap/rolrolzar.html castaic lake] [http://www.uppercanadaplayhouse.com/ssp_director/albums/album-2/en/nomexzfar.html maslach burnout scale] [http://www.trpservices.com/userfiles/image/001/letorotap.html rom] [http://historicmatewanhouse.com/guestbook/upload/preview/pics/lielnrace.html online discount coupon] [http://blackacres.net/forum/images/avatars/gallery/pics/nopaszard.html television commercials] [http://blog.pandorabraceletsusa.com/wp-content/themes/intrablog/images/icons/sedgetal.html nicole nordeman] [http://ka-lan.com/gallery/albums/userpics/10002/dronac.html flights tickets] [http://www.davidgrover.com/gallery/albums/July12/zelgol.html women of the civil war] [http://www.autosafetymagnets.com/blog/wp-content/uploads/images/eltlet.html dishwashers] [http://peopleit.net/store/admin/images/logo/thumbs/alcaquaf.html virgins pussy] [http://www.1800topsoil.com/blog/wp-content/uploads/images/relvir.html string tanga] [http://blog.pandorabraceletsusa.com/wp-content/themes/intrablog/images/icons/futroctro.html apartment lenders] [http://www.1800topsoil.com/blog/wp-content/uploads/images/albugrecn.html rotary club] [http://longlifelighting.com.au/news/wp-content/uploads/images/alqasolor.html gas scooter] [http://www.jasonmichaelbrown.com/search-engine-marketing/images/sitemap.html website] [http://www.1800topsoil.com/blog/wp-content/uploads/images/viaccf.html mammals] [http://www.libertytitlecorp.com/templates_c/150/sanrlitr.html brother my brother] [http://www.usedhomeschoolcurriculum.com/Themes/default/fonts/Candice/gif/orfoklir.html acoustic isolation booths] [http://longlifelighting.com.au/news/wp-content/uploads/images/sitemap.html map] [http://www.trpservices.com/userfiles/image/001/domacr.html vacations for the handicapped] [http://www.knifeshq.com/board/images/mexetze.html broward county bail bond] [http://www.holisticvitamins.com/shop/images/large/dvd/thumbs/c4tc4tfa.html australian cocktail recipes] [http://marketingop.us/wp-content/uploads/2006/07/paslidron.html hot maxim] [http://www.davidgrover.com/gallery/albums/July12/acellic4t.html among brave published review] [http://www.davidgrover.com/gallery/albums/July12/figolricw.html sensual adult ecards] [http://www.holisticvitamins.com/shop/images/large/dvd/thumbs/fichiboc.html radworking.com] [http://www.rides4u.com/images/rides/thumbs/ricchipa.html burning spear] [http://www.jeanwise.org/tmp/views_c/cache/dronzelxd.html afterdowningstreet.org] [http://www.holisticvitamins.com/shop/images/large/dvd/thumbs/envaretfi.html filthy girls] [http://www.rides4u.com/images/rides/thumbs/kofirels.html logans trading raleigh nc] [http://www.autosafetymagnets.com/blog/wp-content/uploads/images/basmexme.html seattle accomodations] [http://www.holisticvitamins.com/shop/images/large/dvd/thumbs/tatrenkob.html poor credit home loans] [http://www.thenetstudyguide.com/blog/wp-content/uploads/images/bugzarfur.html to brown university] [http://www.latestdiscountvouchers.co.uk/rss/sitemap/deenc4tri.html lennox and addington community mental health] [http://bubs-bibs-n-burps.com/oscommerce/includes/languages/english/images/pics/mexlaror.html 2005 mustangs] [http://blackacres.net/forum/images/avatars/gallery/pics/orhenenh.html upi photo archive] [http://wiicentral.net/orders/images/images/rereletol.html smokerswelcome.com] [http://www.apxuf.org/e107_docs/help/English/Files/mexcagete.html foreskin shower] [http://oyido.net/blog/wp-content/uploads/2007/03/deletrol.html amityville] [http://peoplehosting.com.au/sitedesigner/sitebox_temp/cache/relachenf.html cosmos holidays] [http://www.1800topsoil.com/blog/wp-content/uploads/images/bocbosed.html 1 british trawlers war world] [http://www.rides4u.com/images/rides/thumbs/getdomr.html airport international paris roissy] [http://blog.pandorabraceletsusa.com/wp-content/themes/intrablog/images/icons/lipllob.html secreterial jobs] [http://www.davidgrover.com/gallery/albums/July12/monertala.html vod] [http://www.abto.org.bt/old_abto/images/ctac4tr.html do it yourself garage kits] [http://www.libertytitlecorp.com/templates_c/150/fabasace.html hogties] [http://marketingop.us/wp-content/uploads/2006/07/pasbooutr.html buy costumes online] [http://www.sturmgrenadier.com/invision/skin_cache/cacheid_5/nelikor.html premiere theater] [http://www.1800topsoil.com/blog/wp-content/uploads/images/lamextaro.html north carolina college savings plan] [http://www.abto.org.bt/old_abto/images/regolwe.html wow druid pvp video] [http://oyido.net/blog/wp-content/uploads/2007/03/golcao.html zoom text] [http://www.autosafetymagnets.com/blog/wp-content/uploads/images/hencaqas.html 501 hotel] [http://www.sghq.com/catalog/images/banners/new/troczelcn.html dog drawings] [http://longlifelighting.com.au/news/wp-content/uploads/images/xpletm.html audi tt] [http://www.sghq.com/catalog/images/banners/new/rogolre.html wrought iron door hardware] [http://www.fineartpost.com/gallery/albums/album03/brzcnez.html free napster] [http://www.sghq.com/catalog/images/banners/new/robrra.html market america] [http://blog.pandorabraceletsusa.com/wp-content/themes/intrablog/images/icons/inlogetre.html donnell jones] [http://www.1800topsoil.com/blog/wp-content/uploads/images/elmons.html iris lyrics] [http://yellowshoe.com.au/tips/wp-content/themes/yellowshoe/picture/lanocres.html dress evening wear formal] [http://www.abto.org.bt/old_abto/images/trocnele.html arapahoe community college] [http://historicmatewanhouse.com/guestbook/upload/preview/pics/saletosit.html sms] [http://www.squadwerks.com/knowledge_base/admin/images/thumbs/lacacn.html julian downward] [http://www.sturmgrenadier.com/invision/skin_cache/cacheid_5/getetza.html life support] [http://yellowshoe.com.au/tips/wp-content/themes/yellowshoe/picture/fudelc.html brinkmann pro series gas grill] [http://www.1800topsoil.com/blog/wp-content/uploads/images/rofure.html black fat ass] [http://blackacres.net/forum/images/avatars/gallery/pics/kodomzorm.html kauai house rentals] [http://ka-lan.com/gallery/albums/userpics/10002/hencsedsa.html forbiddenvideo] [http://www.apxuf.org/e107_docs/help/English/Files/golacz.html pretty girls of spain] [http://historicmatewanhouse.com/guestbook/upload/preview/pics/fifarol.html adipex] [http://bubs-bibs-n-burps.com/oscommerce/includes/languages/english/images/pics/noacget.html walla walla washington] [http://autographshop.com.au/category/uploadedfiles/thumbs/litaet.html freexxx] [http://www.thenetstudyguide.com/blog/wp-content/uploads/images/varactro.html free xxx long movies] [http://www.booknestguides.com/fishysearch/images/flags/thumbs/zsafevloe.html lisa whittaker] [http://www.latestdiscountvouchers.co.uk/rss/sitemap/index.html website] [http://wiicentral.net/orders/images/images/fokzarrol.html barbara schett] [http://www.uppercanadaplayhouse.com/ssp_director/albums/album-2/en/boclodomt.html linksys cable dsl] [http://www.libertytitlecorp.com/templates_c/150/roqascoqu.html laville elementary] [http://www.sghq.com/catalog/images/banners/new/acvare.html zouk] [http://www.davidgrover.com/gallery/albums/July12/golplres.html walking with the ghosts song]
{{lang|Render modes}}
These are all the rendering modes present in [[Source]].
{{tabsBar|main=gs|base=render modes}}
These are all the rendering modes present in {{Source|4}}.


== General functionality in Source ==
== Description ==
[[Image:RenderModes Additive WSGlow comparison.jpg|thumb|250px|The ''Additive'' mode sprite on the left cuts through the lamp prop, while the ''World Space Glow'' mode sprite on the right is only rendered if nothing blocks it.]]
[[File:RenderModes Additive WSGlow comparison.jpg|thumb|250px|The ''Additive'' mode sprite on the left cuts through the lamp prop, while the ''World Space Glow'' mode sprite on the right is only rendered if nothing blocks it.]]


In [[Source]] (where most rendering modes have been crippled) there are only three reasons for changing the ''Render Mode'' keyvalue to anything else than its ''Normal'' setting:
In [[Source]] ''Render Mode'' ({{mono|rendermode}}) keyvalue controls how an entity's appearance is drawn. Example of use is rendering a sprite properly and applying draw effects onto models.


# You want to render a sprite correctly (without its black box).
There are 4 Render Modes that render transparency correctly: ''Glow'', ''Additive'', and their alternatives ''Additive Fractional Frame'' and ''World Space Glow''. The ''Additive'' modes are rendered so that the sprite will cut through any surrounding geometry, while the two ''Glow'' modes are designed to be used for glowing sprites. Of the two Glow modes, ''Glow'' has a fixed size ''on screen'', while ''World Space Glow'' has a fixed size ''in the world''.
# You want to make an entity transparent.
# You don't want to render the entity at all.


* If you want to render a sprite correctly, there are four modes that can do this: ''Glow'', ''Additive'', and their alternatives ''Additive Fractional Frame'' and ''World Space Glow''. The two ''Additive'' modes are rendered so that the sprite will cut through any surrounding brushwork, while the two ''Glow'' modes are designed to be used for glows and other light source sprites. (See picture on the right.) Of the two Glow modes, ''Glow'' has a fixed size ''on screen'', while ''World Space Glow'' has a fixed size ''in the world''. This is perhaps best demonstrated [[:Image:RenderModes Glow WSGlow comparison.jpg|visually]].
[[File:RenderModes_Glow_WSGlow_comparison.jpg|thumb|250px|A comparison of the Glow (above) and World Space Glow (below) rendering modes, for sprites.]]


* If you want to render an entity as transparent, you need to change the mode from ''Normal'' to enable the ''FX Amount (0 - 255)'' parameter. You can use any of the other eight modes for this, except the ''Don't Render'' mode (unless you want to make it completely invisible).
== Normal (0) ==


* If you don't want to render an entity at all, simply use the ''Don't Render'' mode (The entity will still be there, but remain invisible).
The default Render Mode.


== Normal ==
Transparency keyvalues/inputs will have no effect on entities rendered with this mode.
This is the normal rendering mode. {{todo|Default according to entity type, or according to the renderer?}}


Setting the ''FX Amount (0 - 255)'' keyvalue will have no effect on entities rendered with in this mode.
== Color (1) ==


This mode is not recommended for sprites. (Will not render sprite alpha transparency.)
Behaves like the Normal Render Mode, but allows transparency.


== Color ==
== Texture (2) ==
{{todo|This mode will render entities in degrees of both color and opacity, but so will most of the other modes, so this mode seems to be obsolete.}}
Same as color. Leftover from GoldSrc, where it would render as fullbright.


This mode is not recommended for sprites. (Will not render sprite alpha transparency.)
== Glow (3) ==
Intended for glowing sprites. Allows transparency, and forces the sprite or model to be rendered unlit.


== Texture ==
The size of a sprite rendered with Glow is consistent with the screen size (unlike the alternative World Space Glow), making it appear larger at a distance, in comparison to the world.
Works exactly like the ''Color'' rendering mode. {{todo|Does it really?}}


This mode is not recommended for sprites. (Will not render sprite alpha transparency.)
The ''GlowProxySize'' keyvalue affects this Render Mode on sprites.


== Glow ==
== Solid (4) ==
This render mode is intended for glow sprites. (It will not make entities glow in the dark - sprites will always glow in the dark.) It will of course render sprite alpha transparency correctly.
Enables [[$alphatest|Alphatest]]ing. Legacy port from [[Goldsource]]. Obsolete in Source due to Alphatesting being handled in materials. Does not allow translucency.


The size of a sprite rendered with Glow is consistent with the screen size (unlike World Space Glow), making it seem larger at a distance, in comparison to the world. (See [[:Image:RenderModes Glow WSGlow comparison.jpg|picture]].)
== Additive (5) ==


{{todo|Is this and ''World Space Glow'' the only ones to use the ''GlowProxySize'' keyvalue of sprites?}}
Add the material's color values to the existing image, instead of performing a multiplication. Sprites will appear through world geometry and the sprite/model will always brighten the world. Allows transparency. Good for big sprites because it wont disappear near the edge of the screen.


This rendering mode could be used to discreetly make the player notice something, like for instance a specific glowing button at a console.
== Environmental (6) ==
{{not in FGD}}


== Solid (obsolete) ==
Causes the material to be not be drawn at all, similarly to Don't Render.
This rendering mode is also referred to as ''Alphatest''.


Alphatesting is the process of comparing each pixel of the texture(s), rendering pixels of a certain shade of blue (seen in <code>debug/debugluxels</code>) as transparent.
== Additive Fractional Frame (7) ==
Functions like Additive, but also blends between animation frames. Requires the material to have a functioning animating texture. Allows transparency.


This is very useful for rendering see-through grates, bars and fences, that would otherwise require a complex and detailed brushwork to accomplish, using just a single texture.
== Alpha Add (8) ==
{{not in FGD}}


{{todo|Picture: A texture previously used for Solid, with its blue parts visible, compared to the same grate in-game.}}
Functions similarly to ''Additive'', except that the alpha channel controls the opacity of the sprite.
An example of use is for dark sprites, with an example material being sprites/strider_blackball.vmt.


While this rendering mode was required to alphatest textures in [[Goldsource]], alphatesting is now (in Source) handled automatically by materials, making this rendering mode obsolete.
== World Space Glow (9) ==
Functions similarly to Glow, with the exception that the size of the sprite is relative to the world rather than the screen.


This mode is not recommended for sprites. (Will not render sprite alpha transparency.)
The ''GlowProxySize'' keyvalue affects this Render Mode on sprites.


== Additive ==
== Don't Render (10) ==
{{todo|This rendering mode doesn't seem to work any different than the ''Color'' mode when it comes to adding its color to its background. Is this mode for sprites only? ...like an older Goldsource version of the ''Glow'' rendering mode?}}
Also referred to as ''None''.


The precise formula is: <math>...</math>(?)
The entity is still being drawn and networked albeit invisible, therefore not making this Render Mode ideal for performance reasons.


This mode will render sprite alpha transparency correctly, making it one of the few rendering modes for sprites. However, as it still tests the Z buffer, rendering sprites as thin layers that will penetrate any surrounding brushwork, it is not ideal for this.
To completely avoid drawing and networking an entity, see [[EF_NODRAW]].


{{note|Rendering mode 6 does not exist. ''Additive Fractional Frame'' is rendering mode 7.}}
[[Category:Source]]
 
== Additive fractional frame ==
Blends between animation frames. {{todo|What does that means? Animated sprites - what? Just like the ''Additive'' mode otherwise? Write a better description.}}
 
{{todo|This rendering mode doesn't seem to work any different than the ''Color'' mode when it comes to adding its color to its background. Is this mode for sprites only? ...like an older Goldsource version of the ''Glow'' rendering mode?}}
 
This mode renders sprite alpha transparency correctly, making it one of the few rendering modes for sprites. {{todo|How does it handle surrounding brushwork? Does it handle it as poorly as the ''Additive'' mode?}}
 
== Alpha add ==
This rendering mode is not in the [[FGD]], but can be achieved through turning SmartEdit off and then giving the ''rendermode'' field the value of <code>8</code>.
 
{{todo|Write description. It doesn't seem to differ from the ''Color'' mode though.}}
 
This mode is not recommended for sprites. (Will not render sprite alpha transparency.)
 
== World space glow ==
This mode renders sprite alpha transparency correctly, making it one of the few ideal rendering modes for sprites. It has no Z buffer checks, so it's much like the [[#Glow|glow]] mode, except that it is rendered like it has a place in the world, it's size being relative to the world rather than the screen. (See [[:Image:RenderModes Glow WSGlow comparison.jpg|picture]].)
 
This effect is most useful for having lamp props (like bulbs) glow properly.
 
== Don't render ==
This rendering mode is also referred to as ''None''.
 
This rendering mode simply tells the renderer not to render this entity. (The player can still interact with the entity, but it will not be drawn.)
 
{{note|The entity is still networked in this mode. To not network this entity to the client, see [[EF_NODRAW]].}}
 
[[Category:Technical]]

Latest revision as of 16:18, 13 March 2025

English (en)中文 (zh)Translate (Translate)

These are all the rendering modes present in Source Source.

Description

The Additive mode sprite on the left cuts through the lamp prop, while the World Space Glow mode sprite on the right is only rendered if nothing blocks it.

In Source Render Mode (rendermode) keyvalue controls how an entity's appearance is drawn. Example of use is rendering a sprite properly and applying draw effects onto models.

There are 4 Render Modes that render transparency correctly: Glow, Additive, and their alternatives Additive Fractional Frame and World Space Glow. The Additive modes are rendered so that the sprite will cut through any surrounding geometry, while the two Glow modes are designed to be used for glowing sprites. Of the two Glow modes, Glow has a fixed size on screen, while World Space Glow has a fixed size in the world.

A comparison of the Glow (above) and World Space Glow (below) rendering modes, for sprites.

Normal (0)

The default Render Mode.

Transparency keyvalues/inputs will have no effect on entities rendered with this mode.

Color (1)

Behaves like the Normal Render Mode, but allows transparency.

Texture (2)

Same as color. Leftover from GoldSrc, where it would render as fullbright.

Glow (3)

Intended for glowing sprites. Allows transparency, and forces the sprite or model to be rendered unlit.

The size of a sprite rendered with Glow is consistent with the screen size (unlike the alternative World Space Glow), making it appear larger at a distance, in comparison to the world.

The GlowProxySize keyvalue affects this Render Mode on sprites.

Solid (4)

Enables Alphatesting. Legacy port from Goldsource. Obsolete in Source due to Alphatesting being handled in materials. Does not allow translucency.

Additive (5)

Add the material's color values to the existing image, instead of performing a multiplication. Sprites will appear through world geometry and the sprite/model will always brighten the world. Allows transparency. Good for big sprites because it wont disappear near the edge of the screen.

Environmental (6)

!FGD

Causes the material to be not be drawn at all, similarly to Don't Render.

Additive Fractional Frame (7)

Functions like Additive, but also blends between animation frames. Requires the material to have a functioning animating texture. Allows transparency.

Alpha Add (8)

!FGD

Functions similarly to Additive, except that the alpha channel controls the opacity of the sprite. An example of use is for dark sprites, with an example material being sprites/strider_blackball.vmt.

World Space Glow (9)

Functions similarly to Glow, with the exception that the size of the sprite is relative to the world rather than the screen.

The GlowProxySize keyvalue affects this Render Mode on sprites.

Don't Render (10)

Also referred to as None.

The entity is still being drawn and networked albeit invisible, therefore not making this Render Mode ideal for performance reasons.

To completely avoid drawing and networking an entity, see EF_NODRAW.