-
Notifications
You must be signed in to change notification settings - Fork 108
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
Rounded images #70
Comments
Hi @yuraantonov11 Base: {
rtt: true,
w: 100,
h: 100,
Inner: {
shader: {
type: lng.shaders.RadialFilter,
radius: 50
},
src: "image",
},
} Best regards |
Hi @g-zachar, thanks for your answer, I try to render some images(not only squares) with rounded corners. e.g.: |
Can anyone answer my question? |
@yuraantonov11 I added shader for this specific purpose in 1.3.0, let me know if you have any further questions (you can check example here). |
@g-zachar, thanks for your answer, but I have one more question. Can I set rounding to different corners? |
@yuraantonov11 , it is not possible per se, but you can work around it by clipping parts of image that is being rounded (example) |
Hello, is there a simple way to render a rounded image(without using
getCanvasTexture
)?The text was updated successfully, but these errors were encountered: