public override void Initialize(Microsoft.Xna.Framework.Content.ContentManager contentLoader, Manifracture.ComponentManifest manifest) { IrradianceMap = contentLoader.Load<Texture2D>((string)(manifest.Properties[ManifestKeys.IRRADIANCEMAP])); SpecPrefilter = contentLoader.Load<Texture2D>((string)(manifest.Properties[ManifestKeys.SPECPREFILTER])); NumSpecLevels = (int)(manifest.Properties[ManifestKeys.NUMSPECLEVELS]); SpecExponentFactor = (float)(manifest.Properties[ManifestKeys.SPECEXPONENTFACTOR]); AmbientLight = (Vector3)(manifest.Properties[ManifestKeys.AMBIENTLIGHT]); Owner.ActorInitialized += ActorInitializedHandler; }
public override void Initialize(Microsoft.Xna.Framework.Content.ContentManager contentLoader, Manifracture.ComponentManifest manifest) { if (manifest.Properties.ContainsKey(ManifestKeys.RADIANCE)) Radiance = (Vector3)(manifest.Properties[ManifestKeys.RADIANCE]); }