[#460] 행사 배치도 카드 배경 Shader 구현 (Layered Radial Gradient 쉐이더 코드 작성)#467
Merged
Conversation
workspace
reviewed
May 31, 2025
workspace
approved these changes
Jun 1, 2025
workspace
left a comment
Contributor
There was a problem hiding this comment.
@easternkite LGTM! 마지막(?) 어마무시한 배경 shader도 작업하신다면, 어떻게 하실지 너무 궁금하네요 ㅎㅎ 수고하셨습니다!
Author
|
@workspace 재미있는 제안 주셔서 감사합니다~~ |
8fded6a
into
droidknights:2025/compose-multiplatform
8 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Overview (Required)
행사 배치도 카드 배경을 Shader로 작성해보았습니다. 랜더링 되는 원의 크기는 레이아웃의 width 길이에 비례하여 반응적으로 조정되도록 처리했습니다.
추가적으로, 카드 컴포넌트 색상관련해서 기존엔 colorScheme으로 처리되고 있었는데요, 요건 차후 다크모드일 때도 일관적인 색상 유지를 위해 고정 색상으로 할당해두었습니다.
확인 부탁드립니다.
알게된 사실
sksl코드에서 색상을 리턴할 때, Non-Android 타겟에서 일반적인 방법으로 투명도가 안먹는 케이스가 존재했습니다.
요 때는 각각 RGB색상에 투명도를 곱해주어야 한다는 사실을 알았습니다.
AS-IS
TO-BE
Screenshot