Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render in-game SDF sprites with a black outline #201

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

hasenbanck
Copy link
Collaborator

SDF sprites are created with a pxrange of 8 (4 inside, 4 outside pixel range) and a size of 64x64. SDF are also now always grayscale and are mainly colored using the instruction color. For this we extended the texture loader to also handle grayscale images properly. Only PNG and TGA provide proper grayscale images.

@hasenbanck hasenbanck force-pushed the sdf_outline branch 2 times, most recently from 03d1ed0 to 17feab8 Compare December 18, 2024 19:28
SDF sprites are created with a pxrange of 8 (4 inside, 4 outside pixel range) and a size of 64x64. SDF are also now always grayscale and are mainly colored using the instruction color. For this we extended the texture loader to also handle grayscale images properly. Only PNG and TGA provide proper grayscale images.
@hasenbanck hasenbanck merged commit 6037aa1 into vE5li:main Dec 19, 2024
3 checks passed
@hasenbanck hasenbanck deleted the sdf_outline branch December 19, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant