INNER CODE UNIT · C#

All

Blotch3D/Blotch3D · src/BlEffectHelpers.cs:33

		All = -1
	}


	/// <summary>
	/// Helper code shared between the various built-in effects.
	/// </summary>
	internal static class BlEffectHelpers
	{
		/// <summary>
		/// Sets up the standard key/fill/back lighting rig.
		/// </summary>
		internal static Vector3 EnableDefaultLighting(DirectionalLight light0, DirectionalLight light1, DirectionalLight light2)
		{
			// Key light.
			light0.Direction = new Vector3(-0.5265408f, -0.5735765f, -0.6275069f);
			light0.DiffuseColor = new Vector3(1, 0.9607844f, 0.8078432f);
			light0.SpecularColor = new Vector3(1, 0.9607844f, 0.8078432f);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…