Skip to content

LightProperty

29thnight edited this page Nov 27, 2025 · 1 revision

LightProperty 및 쉐이더 상수 버퍼

간단 설명: 라이트 타입/상태 열거와 렌더링용 상수 버퍼(cbuffer) 정의.

Enum

Enum
LightType DirectionalLight, PointLight, SpotLight
LightStatus Disabled, Enabled, StaticShadows

cbuffer Light

  • 위치/방향/색상/감쇠/각도/타입/상태/범위/세기 포함
  • GetLightViewMatrix() / GetLightProjectionMatrix(near, far, width, height) 제공
    • 방향성: 정사영, 포인트/스포트: 원근사영(FOV=spotAngle)

기타 버퍼

  • LightProperties: 카메라 위치/글로벌 앰비언트/라이트 배열(MAX_LIGHTS)
  • LightCount: 라이트 수
  • ShadowMapConstant: 섀도우 맵 크기/캐스케이드 행렬/종단 값/옵션
  • cameraView, ShadowMapRenderDesc: 섀도우 렌더 파라미터 구조체

렌더 패스에서 상수 버퍼로 바인딩되어 셰이더 연산에 사용.

CreatorEngine

API Docs

API Reference
Main
PhysicsSystem
RenderEngine
ScriptBinder
Utility_Framework

etc

Clone this wiki locally