# Lighting(ロブロックス クラス) > ゲームの世界の明るさ・時刻・空の色などを決めるサービスです。 - URL:https://roblox.minecraft-okinawa.com/reference/classes/Lighting/ - 公式:https://create.roblox.com/docs/reference/engine/classes/Lighting - 受け継いでいるクラス:Instance ## プロパティ - `Lighting.Ambient: Color3`:影の部分の色。 - `Lighting.Brightness: float`:明るさ。 - `Lighting.ClockTime: float`:ゲームの中の時刻(0〜24)。 - `Lighting.ColorShift_Bottom: Color3`:The hue represented in light reflected in the opposite surfaces to those facing the sun or moon. - `Lighting.ColorShift_Top: Color3`:The hue represented in light reflected from surfaces facing the sun or moon. - `Lighting.EnvironmentDiffuseScale: float`:Ambient light that is derived from the environment. - `Lighting.EnvironmentSpecularScale: float`:Specular light derived from environment. - `Lighting.ExposureCompensation: float`:The exposure compensation value. - `Lighting.ExtendLightRangeTo120: RolloutState`:Unused. Light Class.PointLight.Range|Range is always clamped to 120 studs. - `Lighting.FogColor: Color3`:A Color3 value giving the hue of Lighting fog. - `Lighting.FogEnd: float`:霧が完全に濃くなる距離。 - `Lighting.FogStart: float`:The depth from the Workspace.CurrentCamera, in studs, at which fog begins to show. - `Lighting.GeographicLatitude: float`:The geographic latitude, in degrees, of the scene, influencing the result of Lighting time on the position of the sun and moon. - `Lighting.GlobalShadows: boolean`:Toggles voxel-based dynamic lighting for the place. - `Lighting.LightingStyle: LightingStyle`:The artistic intent behind lighting in the experience. - `Lighting.OutdoorAmbient: Color3`:The lighting hue applied to outdoor areas. - `Lighting.PrioritizeLightingQuality: boolean`:Indicates whether you prefer lighting/shading quality or view distance to scale down first. - `Lighting.ShadowSoftness: float`:Controls how blurry the shadows are. - `Lighting.TimeOfDay: string`:A 24-hour string representation of the current time of day used by Lighting. ## メソッド - `Lighting:GetMinutesAfterMidnight(): double`:Returns the number of minutes that have passed after midnight for the purposes of lighting. - `Lighting:GetMoonDirection(): Vector3`:Returns a Vector3 representing the direction of the moon. - `Lighting:GetSunDirection(): Vector3`:Returns a Vector3 representing the direction of the sun. - `Lighting:SetMinutesAfterMidnight(minutes: double): ()`:Sets Class.Lighting.TimeOfDay|TimeOfDay and Class.Lighting.ClockTime|ClockTime to the given number of minutes after midnight. ## イベント - `Lighting.LightingChanged(skyChanged: boolean)`:This event fires when a Lighting property is changed or a Sky is added or removed from Lighting. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)