Atmosphere

Atmosphere : Instance

Overview

Atmosphere 객체의 입자 밀도, 안개, 색상 등을 활용하여 현실감 있는 대기 효과를 연출할 수 있습니다.

Properties

Density

number

공기 중 입자의 밀도를 설정하는 속성입니다.

값이 높아질수록 게임 세계가 더 흐릿하고 안개 낀 듯한 분위기로 표현됩니다.

Code Samples

local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.Density = 0.2

FogFalloffClear

number

입자가 거리별로 얼마나 빠르게 사라지는지를 설정하는 속성입니다.

값이 낮을수록 안개가 멀리까지 유지되며, 값이 높을수록 가까운 거리에서 빠르게 감쇠됩니다.

Code Samples

local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.FogFalloffClear = 0.1

StartDistance

number

입자가 시작되는 거리를 설정하는 속성입니다.

값이 낮을수록 가까운 거리에서 안개가 시작되며, 값이 높을수록 먼 거리에서 안개가 시작됩니다.

Code Samples

local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.StartDistance = 1000

Color

Color3

대기의 색상을 설정하는 속성입니다.

Code Samples

local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.Color = Color3.new(255, 0, 0)

Last updated