Shaders in Glass: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
No edit summary  | 
				m (Moved info from main list.)  | 
				||
| Line 8: | Line 8: | ||
===LightmappedTwoTexture===  | ===LightmappedTwoTexture===  | ||
* Two textures are mixed evenly and multiplied by a lightmap. Useful if one or both base textures are in motion.  | |||
* Used in only one material: <code>glasswindow018a_cracked.vmt</code>  | * Used in only one material: <code>glasswindow018a_cracked.vmt</code>  | ||
* Not found in released mod code.  | * Not found in released mod code.  | ||
Revision as of 09:12, 12 February 2008
The Glass\ folder of Source Materials.gcf contain shaders dedicated to windows and glass materials:
- LightmappedGeneric is used for 46 materials.
 - LightmappedGeneric_DX6 is used for the 
glasswindowbreak070a.vmtmaterial (as a fallback shader for the LightmappedGeneric shader). 
Dedicated Shaders
The following shaders are more or less exclusively used for this folder.
LightmappedTwoTexture
- Two textures are mixed evenly and multiplied by a lightmap. Useful if one or both base textures are in motion.
 - Used in only one material: 
glasswindow018a_cracked.vmt - Not found in released mod code.
 
ShatteredGlass
- Used in only one material: 
glasswindowbreak070b.vmt - Only referred to once in released mod code (in 
src\utils\vbsp\cubemap.cpp). - Closely related to the 
$crackmaterialparameter, which in turn is related to the func_breakable_surf entity. 
ShatteredGlass_DX7
- Used in the 
glasswindowbreak070b.vmtmaterial (as a fallback shader for the ShatteredGlass shader). See above. 
ShatteredGlass_DX8
- Used in the 
glasswindowbreak070b.vmtmaterial (as a fallback shader for the ShatteredGlass shader). See above.