You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results in e.g. glod game tutorial, which uses transparent PNG images to render PNG images incorrectly. See issue here. When this branch has been merged into Shards, the tutorials should be updated to premultiply the alpha channels of the PNG images loaded so that learners do not encounter this issue.
For glod-game, there are 2 ways to achieve the required fix by changing load-texture.
Method 1:
(defshards load-texture [name]
(LoadImage name :PremultiplyAlpha true)
(GFX.Texture))
The crucial point is to add the respective parameter to LoadImage when loading PNG images, or to add the PremultiplyAlpha shard after loading the PNG image
The text was updated successfully, but these errors were encountered:
This results in e.g. glod game tutorial, which uses transparent PNG images to render PNG images incorrectly. See issue here. When this branch has been merged into Shards, the tutorials should be updated to premultiply the alpha channels of the PNG images loaded so that learners do not encounter this issue.
For glod-game, there are 2 ways to achieve the required fix by changing
load-texture
.Method 1:
Method 2:
The crucial point is to add the respective parameter to
LoadImage
when loading PNG images, or to add thePremultiplyAlpha
shard after loading the PNG imageThe text was updated successfully, but these errors were encountered: