-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Unable to retrieve normal map from CanvasTexture atlas in TileSet/TileMap #61832
Comments
I've been trying to work on this issue as it's blocking progress on my game (my first time, so slightly overwhelmed), and I noticed that shader's Sprite2D is working as expected, and digging into the code, they both call I wonder if it's a bug with CanvasItem? Normals seem to stop working similarly in a CanvasGroup. Clearly don't know the code very well, so any insight would be appreciated. |
How did you manage to get the contents of the SubViewport to display in the sprite? I can't make Viewport textures as maps for the canvas texture because they are not local to the scene. Do the viewports need any special settings? This is a much better workaround than what I've currently been doing, which is to copy the normals and diffuse onto a sprite, then give a sprite a canvasitem shader set to premultiplied Alpha blending mode with Light Only on top of the tileset. |
Looks like the issue comes from enabling EDIT: I'm using v4.0.beta3.official [01ae26d] |
Oh right, that makes a lot of sense! Support for CanvasTexture then has to be added to the texture padding feature. |
Godot version
4.0.dev (alpha 9)
System information
Windows 11 Pro version 10.0.22000 Build 22000, NVIDIA GeForce RTX 2060, Game Ready Driver v511.79, Vulkan
Issue description
Using a CanvasTexture with a diffuse and normal map attached will only render tiles with the diffuse map, but will not add normals to the tiles. There is seemingly no way in Godot 4.0 to use normal maps with TileSets. When tiles are pulled from the atlas to draw the tiles, normal map data should also be retrieved and added. When a user configures an atlas texture with a CanvasTexture and the TileSet is drawn, during the draw step, information about the normals can be drawn and used. Adding normals to tilesets in 3.x was possible, but there is seemingly no way in 4.0.
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: