Spotlight1 [DirectX11] Lighting - Directional Light/ Pointlight / Spotlight Directional lights(Parallel lights) Directional lights는 태양과 같이 매우 멀리 있는 광원과 비슷하다고 볼 수 있다. 즉, 모든 서로 다른 광선이 평행하게 들어온다고 볼 수 있다. 광원은 광선이 향하는 방향을 나타내는 하나의 vector로 정의될 수 있다. light vector는 광원이 향하는 방향의 반대 방향을 향한다. Directional lights는 pointlights, spotlights보다 비용이 적게 든다. 구현 //LightHelper.fx struct DirectionalLight { float4 Ambient; float4 Diffuse; float4 Specular; float3 Direction; float pad; }; void Com.. 그래픽스(DirectX) 2023. 5. 22. 이전 1 다음