feature/interaction_outline #13

Merged
Jonathan merged 2 commits from feature/interaction_outline into develop 2025-08-06 17:37:05 +02:00
Owner

Reworked interaction mechanic in order to highlight interactable objects with an outline. The outline is done via shader:

  • simple objects (one sprite) can use the shader directly
  • complex objects (2 or more sprites) can use a Subviewport Node and a Sprite with a Viewport Texture to achieve the desired effect.

There is currently one outline material for all interactable items that defines the thickness and the color of the outline. There is nothing stopping us from assigning multiple different materials for different usecases (e.g. yellow for simple interactions, white for inventory items, orange for quest items)

image

Reworked interaction mechanic in order to highlight interactable objects with an outline. The outline is done via shader: - simple objects (one sprite) can use the shader directly - complex objects (2 or more sprites) can use a Subviewport Node and a Sprite with a Viewport Texture to achieve the desired effect. There is currently one outline material for all interactable items that defines the thickness and the color of the outline. There is nothing stopping us from assigning multiple different materials for different usecases (e.g. yellow for simple interactions, white for inventory items, orange for quest items) ![image](/attachments/f00db252-d69f-4708-96ca-c27dc0ee0e2a)
1.1 MiB
kziolkowski added 2 commits 2025-07-31 19:11:55 +02:00
Jonathan approved these changes 2025-08-06 17:36:57 +02:00
Jonathan merged commit 3b7159356c into develop 2025-08-06 17:37:05 +02:00
Owner

Merge was reverted

**Merge was reverted**
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Jonathan/Babushka#13