From Valve Developer Community
Revision as of 23:26, 27 December 2012 by Obstipator (talk | contribs) ($detailtexturetransform: new section)
Jump to: navigation, search

Nice work on this, it's nice to see Source finally using Detail Mapping.--Gear 09:28, 11 Jan 2008 (PST)


there are 3 blendmodes(0;1;2), but I don't know how to call the third effect. --Pfannkuchen 19:33, 24 February 2010 (UTC)

Description of detail textures

I think the description of the use of these textures should be changed, as they can be used for much more than applying small details. For instance, a full-color texture as the $detail texture, $detailblendmode set to 2 and $detailscale set to 1 can be used to apply a full color texture on top of another. I.E., the turrets from Portal 2. They use this for being covered in paint.


$detailtexturetransform seems to behave strangely. Setting it by itself doesn't seem to modify the detail texture. Using it as the resultVar of a TextureTransform material proxy doesn't do anything either. However, using it in a textureScrollVar of a TextureScroll material proxy does have an effect. I don't know what the deal is with that. (All this testing done in Portal 2, so may be different in other games.) For all of these tests, I've tried swapping out "$detailtexturetransform" for "$basetexturetransform" and saw the basetexture get modified as it should, but as $detailtexturetransform, it just does not seem to work as stated.--Obstipator 22:26, 27 December 2012 (PST)