Light

AI와 함께 읽기
전체 문서 한 파일로 (llms-full.txt)
Light3D #3D #Node
Light

Unity의 Light 컴포넌트는 사용하지 않고, 위치, 방향, 색 등을 기술자로서 Scene 출력으로 흘려보냅니다. Render가 이를 uniform 배열로 변환해 SRLit의 음영 계산에 전달합니다. 출력은 Scene이므로, 그리기 아이템을 가진 Scene과 함께 Render의 다른 슬롯에 연결하거나 SceneTransform을 통과시킵니다. 방향은 Pitch / Yaw의 2축으로 만들어지며 Roll은 없습니다.

  • 종류 드롭다운: Directional(기본) / Point / Spot
  • PosX / PosY / PosZ(기본값 0 / 5 / -5) — Directional에서는 위치가 사용되지 않습니다
  • RotX(Pitch)(기본값 50) / RotY(Yaw)(기본값 -30)
  • Color(기본 흰색) / Intensity(기본값 1.5, 음수는 0으로 취급됩니다)
  • Range(기본값 20, 하한 0.01) — Point / Spot용
  • Spot Angle(기본값 45, 1~179도로 클램프됩니다) — Spot용
  • Cookie — RenderTexture 입력. Spot에서는 프로젝터 투영, Directional / Point에서는 영상의 평균색으로 라이트 색을 변조합니다

Render가 다룰 수 있는 라이트는 모든 Scene 슬롯을 합쳐 8개까지입니다. 초과한 만큼은 무시됩니다. Cookie에 의한 프로젝터 투영은 동시에 1개(가장 먼저 발견된 Spot)만 가능합니다. Directional / Point의 평균색 변조는 3프레임에 1회 샘플링됩니다. 종류를 전환하면 라이트 색은 한 번 Color 입력의 값으로 돌아갑니다.

입력 포트

Port ID타입
PosXfloat
PosYfloat
PosZfloat
RotXfloat
RotYfloat
ColorColor
Intensityfloat
Rangefloat
Spot Anglefloat
CookieRenderTexture

출력 포트

Port ID타입
SceneSceneDataOutput

스크립트에서 설정할 수 있는 멤버

경로타입
posXInputfloat
posYInputfloat
posZInputfloat
rotXInputfloat
rotYInputfloat
intensityInputfloat
rangeInputfloat
spotAngleInputfloat

Synapse Apps (스크립팅)

await synapse.modules.create({ type: "Light3D" })

이 페이지로 연결된 페이지

같은 페이지를 참조하는 페이지