• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Light

Status
Not open for further replies.
You'll create a "Light" block. Here is an example, taken from the lantern post model:
JASS:
Light "Omni01" {
	ObjectId 8,
	Omnidirectional,
	static AttenuationStart 80,
	static AttenuationEnd 200,
	static Color { 1, 1, 1 },
	static Intensity 11,
	static AmbColor { 1, 1, 1 },
	static AmbIntensity 0,
	Visibility 2 {
		DontInterp,
		0: 1,
		4667: 0,
	}
}

Keep in mind that colors are BGR. Here are the specs:
JASS:
Light <string_name> {
	ObjectId <long>,
	Parent <long>,
	BillboardedLockZ,
	BillboardedLockY,
	BillboardedLockX,
	Billboarded,
	CameraAnchored,
	DontInherit { <Rotation|Translation|Scaling> },
	<Omnidirectional|Directional|Ambient>,
	static AttenuationStart <float>,
	static AttenuationEnd <float>,
	static (Intensity <float>),
	static (Color { <float_b>, <float_g>, <float_r> }),
	static (AmbIntensity <float>),
	static (AmbColor { <float_b>, <float_g>, <float_r> }),
	(Visibility <float>)
	(Translation { <float_x>, <float_y>, <float_z> })
	(Rotation { <float_a>, <float_b>, <float_c>, <float_d> })
	(Scaling { <float_x>, <float_y>, <float_z> })
}

You can edit these a little more easily in Magos' model editor, under the node manager.
 
Status
Not open for further replies.
Top