Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EnableDefaultLighting()

static Vector3 Microsoft.Xna.Framework.Graphics.EffectHelpers.EnableDefaultLighting ( DirectionalLight light0,
DirectionalLight light1,
DirectionalLight light2 )
inlinestaticpackage

Definition at line 5 of file EffectHelpers.cs.

6 {
7 light0.Direction = new Vector3(-0.5265408f, -0.5735765f, -0.6275069f);
8 light0.DiffuseColor = new Vector3(1f, 0.9607844f, 0.8078432f);
9 light0.SpecularColor = new Vector3(1f, 0.9607844f, 0.8078432f);
10 light0.Enabled = true;
11 light1.Direction = new Vector3(0.7198464f, 0.3420201f, 0.6040227f);
12 light1.DiffuseColor = new Vector3(82f / 85f, 0.7607844f, 0.4078432f);
13 light1.SpecularColor = Vector3.Zero;
14 light1.Enabled = true;
15 light2.Direction = new Vector3(0.4545195f, -0.7660444f, 0.4545195f);
16 light2.DiffuseColor = new Vector3(0.3231373f, 0.3607844f, 0.3937255f);
17 light2.SpecularColor = new Vector3(0.3231373f, 0.3607844f, 0.3937255f);
18 light2.Enabled = true;
19 return new Vector3(0.05333332f, 0.09882354f, 0.1819608f);
20 }

References Microsoft.Xna.Framework.Graphics.Vector3, and Microsoft.Xna.Framework.Vector3.Zero.

Referenced by Microsoft.Xna.Framework.Graphics.BasicEffect.EnableDefaultLighting(), Microsoft.Xna.Framework.Graphics.EnvironmentMapEffect.EnableDefaultLighting(), and Microsoft.Xna.Framework.Graphics.SkinnedEffect.EnableDefaultLighting().