adhit-r / adhit-r/holocron

Force-ghost shader for deceased Jedi

Đang mở
#6 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area: 3d area: shader enhancement lore-heavy
Ngôn ngữ chính
TypeScript
Star
0
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

> **Skills:** GLSL fragment shaders · R3F shader uniforms · era-driven state
> **Time:** ~8 hours
> **Good for:** Shader nerds who watched ROTJ a hundred times
> **Difficulty:** Intermediate

---

## Context

When the timeline scrubber moves past a Jedi's death year, their hologram
should adopt a "Force ghost" treatment — translucent blue shimmer with edge
dissolve, the way Obi-Wan, Yoda, and Anakin appear after Endor.

## Goal

Era-aware shader variant that activates automatically based on the global era
and the entity's `era.deathYear`.

## Where to start

- `components/galaxy/HolographicFigure.shaders.ts` — extend the fragment shader
with a uniform `uForceGhost: float` (0..1) that blends between the active
hologram look and a softer, more diffuse, edge-dissolved variant
- `components/galaxy/HolographicFigure.tsx` — read the global era and the
entity's death year, set the uniform
- Force-ghost effect: lower body opacity, lift fresnel rim intensity, slight
vertical "drift" displacement on the head/shoulders (subtle), monochrome
pale blue tint regardless of side

## Acceptance criteria

- Yoda's hologram becomes ghostly when era ≥ 4 ABY
- Obi-Wan becomes ghostly when era ≥ 0 BBY
- Smooth transition over ~600ms when scrubber crosses the threshold
- Reduced motion: instant binary swap
- Sith characters with death years: do they get a ghost treatment? Lore says no
(Sith spirits are different); document the policy

## Lore reference

https://starwars.fandom.com/wiki/Force_ghost

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Read components/galaxy/HolographicFigure.shaders.ts and components/galaxy/HolographicFigure.tsx first, then trace how the global era and entity era.deathYear are exposed. Verify the Yoda and Obi-Wan thresholds, the smooth transition and reduced-motion behavior in the running galaxy timeline; document the Sith policy as part of the completed work.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
next.js, react, three.js, typescript
Lĩnh vực
computer-graphics, frontend
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
68/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.