feature/interaction_outline #13

Merged
Jonathan merged 2 commits from feature/interaction_outline into develop 5 months ago
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 5 months ago
Jonathan approved these changes 5 months ago
Jonathan merged commit 3b7159356c into develop 5 months ago
Owner

Merge was reverted

**Merge was reverted**

Reviewers

Jonathan approved these changes 5 months ago
The pull request has been merged as 3b7159356c.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: Jonathan/Babushka#13
Loading…
There is no content yet.