Light
Light
AmbientLight -> ์ฃผ๋ณ๊ด, intensity๋ฅผ ๋ฎ์ถ์ด ์ค๋ธ์ ํธ์ ํํ๋ง ๋ณด์ด๊ฒ ํํํ ๋ ์์ฃผ ์ฌ์ฉ๋๋ค.
HemisphereLight -> ์ฃผ๋ณ๊ด, ๋ฐ์์ ์ค์ฌ์ผ๋ก ์ํ์์ ๋น์ถ๋ ๋น์ ๋ ๊ฐ์ง ์์์ ์ค์ ํ ์ ์๋ค.
DirectionalLight -> ๋ฐฉํฅ์ฑ์ ๊ฐ์ง ๋น (ex: ํ๋น)
PointLight -> ๋ฐฉํฅ์์ด ์ฌ๋ฐฉ์ผ๋ก ํผ์ง๋ ๋น (ex: ๋ฐฑ์ด๋ฑ)
SpotLight -> ํ๊ณณ์ผ๋ก ์ง์ค๋ ๋น (ex: ๋ฌด๋ ์กฐ๋ช )
Properties
color: ๋น์ ์์
intensity: ๋น์ ๊ฐ๋
target: ์ค๋ธ์ ํธ ๋์์ ํฌ์ง์ ๊ฐ์ผ๋ก, light์ position์ ๊ธฐ์ค์ผ๋ก target์ position๊ฐ์ ๊ณ์ฐํ์ฌ Light์ ๊ฐ๋(rotate)๋ฅผ ์ฌ๊ณ์ฐํ๋ค. (default: 0,0,0)
distance: ๋น์ ๊ฑฐ๋ฆฌ
penumbra: [spotlight] ๋น์ ๊ฐ์ ์จ ์กฐ์
Shadow
castShadow: Mesh์ ์์ ์ ๊ทธ๋ฆผ์ ์์ฑ ์ฌ๋ถ
recieveShadow: ์์ ๋๋ ๋ค๋ฅธ Mesh์ ์ํด ์์ฑ๋ ๊ทธ๋ฆผ์์ ์ํฅ์ ๋ฐ๋์ง ์ฌ๋ถ
shadowMapSize: shadowMap์ ํฌ๊ธฐ๋ฅผ ์กฐ์ ํ์ฌ ๊ทธ๋ฆผ์ ํด์๋ ์กฐ์ , shadow๋ texture์ฒ๋ผ ๋ ๋๋ง๋จ
SpotLgith
ํน์ ๋ฐฉํฅ์ผ๋ก ์ง์ค๋ ๋น์ ๋ฐฉ์ถํ๋ ์กฐ๋ช , ๋น์ด ๋ฉ์ด์ง์๋ก ํฌ๊ธฐ๊ฐ ์ปค์ง๋ ์๋ฟ์ ๋ฐ๋ผ ๋ฐฉ์ถ๋๋ค.
Target
spotLight๋ ๋น์ ์ด๋ค ํ๊ฒ์ ํฅํด ๋ฐฉ์ถ ํ ์ง์ ๋ํ ์ ๋ณด๋ฅผ ๊ฐ์ง๊ณ ์๋๋ฐ ๊ธฐ๋ณธ์ ์ผ๋ก ์์ ์ ํฅํด ๋ฐฉ์ถ๋๋ค.
Texture
๋น์ ์์์ ์กฐ์ ํ๊ธฐ ์ํ ์ฉ๋๋ก
texture
๋ฅผ ์ ํ ์ ์๋ค.๊ด์์ ์ ํ๋ ํ ์ค์ณ๋ ์์๊ฒฝ ๊ฐ์ ํจ๊ณผ๋ฅผ ๊ฐ๋๋ค.
๋น์ด ํ ์ค์ณ๋ฅผ ํฌ๊ณผํ๋ฉด์ ํ ์ค์ณ์ ์์์ด ์ ํ์ง๋ ๊ฒ์ผ๋ก ์ดํดํ์.
Last updated