$decalscale: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
mNo edit summary  | 
				mNo edit summary  | 
				||
| Line 1: | Line 1: | ||
The [[$decalscale]] [[VMT command]] scales the [[$basetexture]]   | |||
* See [[Creating Decals]].   | |||
==VMT syntax example 1==  | |||
 "[[LightmappedGeneric]]"  | |||
 {  | |||
     "[[$basetexture]]" "decals/mydecal"  | |||
     "[[$decal]]" 1  | |||
     "[[$decalscale]]" 0.10  | |||
     "[[$translucent]]" 1  | |||
 }  | |||
* In this example the key "$decalscale" is set to a value of "0.1", meaning that the decal is rendered at 1/10th scale inside of the engine. If the source texture for this decal is 128 pixels, it will be 12.8 inches in size in the engine (or about a foot in length).   | |||
==VMT syntax example 2==  | |||
 "[[DecalModulate]]"  | |||
 {  | |||
     "[[$basetexture]]" "decals/mydecal"  | |||
     "[[$decalscale]]" 0.10  | |||
 }  | |||
* Note that neither the "$translucent" or "$decal" parameters are needed with the DecalModulate shader.  | |||
[[Category:List of Shader Parameters]]  | |||
Revision as of 18:54, 4 April 2008
The $decalscale VMT command scales the $basetexture
- See Creating Decals.
 
VMT syntax example 1
"LightmappedGeneric" { "$basetexture" "decals/mydecal" "$decal" 1 "$decalscale" 0.10 "$translucent" 1 }
- In this example the key "$decalscale" is set to a value of "0.1", meaning that the decal is rendered at 1/10th scale inside of the engine. If the source texture for this decal is 128 pixels, it will be 12.8 inches in size in the engine (or about a foot in length).
 
VMT syntax example 2
"DecalModulate" { "$basetexture" "decals/mydecal" "$decalscale" 0.10 }
- Note that neither the "$translucent" or "$decal" parameters are needed with the DecalModulate shader.