Sky (Source 1 shader)

From Valve Developer Community
Revision as of 16:33, 28 December 2018 by MissingNoGuy55 (talk | contribs) (Created page with "'''Sky''' is a shader for materials in Source meant for 2D skyboxes. The old method of making skyboxes before 2007 involved using the UnlitGeneric shad...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sky is a shader for materials in Source meant for 2D skyboxes. The old method of making skyboxes before 2007 involved using the UnlitGeneric shader with $ignorez 1. This shader expands the amount of usable parameters and also allows for HDR skyboxes.

Most of the time, VMTs should only exist for HDR skyboxes that have an LDR fallback. An example of an HDR skybox with a fallback will look like this:

"sky"
{
	"$hdrcompressedTexture" "skybox/sky_wasteland_00_hdrup"	
	"$nofog" "1"
	"$ignorez" "1"
	"$basetexture" "skybox/sky_wasteland_00up"          // VMT will load this VTF instead if not running in HDR.
	"$basetexturetransform" "center 0 0 scale 1 2 rotate 0 translate 0 0"          // For cutting off the bottom halves of the skybox
}