2016년 겨울 쯤에 구현 했던 라이트 프로브 데이터에 프로브 개별적으로 접근 하여 데이터를 변조 하는 기능입니다.
이 기능 자체를 직접 사용 할 수도 있고 아닐 수도 있지만 스크립트를 참조 하여 유니티에서 SH 데이터의 API 가 어떻게 구현되었는지 이해하는데 도움이 될 겁니다.
구현 목적
- 개별 프로브 SH 아웃 데이터 결과를 조정할 수 있습니다.
- 아티스트에게 매우 유용한 인터페이스 디자인.
라이트 프로브 데이터는 라이트 에셋에 바이너리 형태로 저장되는 특징이 있습니다.
또한 병합된 모든 씬의 라이트 프로브 정보는 마지막 씬의 정보에 따라 교체됩니다.
이 문제에 대한 기본적인 해결책은 TextAsset에 별도로 저장하고 각 청크별로 별도로 관리하는 것입니다.
또한 아트 팀이 SH 디테일 값을 수정할 수 있도록 에디터 확장 기능을 구현할 수도 있습니다.
GITHUB
깃허브의 스크립트를 사용해서 분석 해 보시는 것을 추천 드립니다.
GitHub - leegoonz/LightProbeShModifier
Contribute to leegoonz/LightProbeShModifier development by creating an account on GitHub.
github.com
REFERENCE
Unity - Scripting API: SphericalHarmonicsL2
Spherical harmonics (SH) represent a function or signal over directions, and are commonly used in computer graphics to efficiently evaluate smooth lighting. Unity uses them for LightProbes and environment lighting. L2 spherical harmonics is composed of 9 c
docs.unity3d.com
Wolfram MathWorld: The Web's Most Extensive Mathematics Resource
Comprehensive encyclopedia of mathematics with 13,000 detailed entries. Continually updated, extensively illustrated, and with interactive examples.
mathworld.wolfram.com
'UNITY3D' 카테고리의 다른 글
How to port UE4 ACES to URP (0) | 2023.09.01 |
---|---|
[번역]Firewatch multi-coloured fog (0) | 2023.08.30 |
[번역]The Fog of Random! Losf of Random 개발 사례. (0) | 2023.08.30 |
[번역글] Branching on a GPU (0) | 2023.05.16 |
Dragonheir_ Silent Gods Mobile shading Early preview. (0) | 2023.05.15 |