

xray_glasses_overlay_replacing_warped
{
	description	"Xray GUI overlay for glasses that replaces the normal model with the xray model. No xray vision through opaque obstacles. Has blurred effect."

	noshadows
	nonsolid

	{
		blend GL_SRC_ALPHA, GL_ZERO
		map makealpha(guis/assets/hud/xray_glasses_overlay)
		maskcolor
	}

	{
		blend GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA
		xrayRenderMap inclusive        
		program		heatHazeWithMask.vfp
		vertexParm	0	time * 0.008 , time * 0.005	// texture scrolling
		vertexParm	1	0.02				// magnitude of the distortion
		fragmentMap	0	_xray
		fragmentMap	1	textures/sfx/vp1		// the normal map for distortion
		fragmentMap	2	guis/assets/hud/xray_glasses_overlay    // the distortion blend map
	}
}