feat: 보스 가림 시 플레이어 외곽선 표시
- PlayerOcclusionOutline: 보스(Enemy 레이어)가 플레이어를 가릴 때 외곽선 활성화 - Outline.shader: URP 법선 확장 외곽선 셰이더 (Fresnel 기반 알파) - 외곽선용 별도 SkinnedMeshRenderer를 자식 GameObject에 생성 - ObstacleTransparencyController: Enemy 레이어 장애물 숨김 제외 - PlayerCamera: PlayerOcclusionOutline 초기화 연동 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -91,6 +91,12 @@ namespace Colosseum.Player
|
||||
transparencyController = cameraInstance.gameObject.AddComponent<ObstacleTransparencyController>();
|
||||
transparencyController.Initialize(target, collisionMask);
|
||||
|
||||
// 플레이어 외곽선 컨트롤러 연동 (보스 가림 시)
|
||||
var outlineController = cameraInstance.gameObject.GetComponent<PlayerOcclusionOutline>();
|
||||
if (outlineController == null)
|
||||
outlineController = cameraInstance.gameObject.AddComponent<PlayerOcclusionOutline>();
|
||||
outlineController.Initialize(cameraInstance.transform, target);
|
||||
|
||||
// 카메라 위치를 즉시 타겟 위치로 초기화
|
||||
SnapToTarget();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user