-
Notifications
You must be signed in to change notification settings - Fork 28
Description
First of all, love the tool, is amazing to work with.
I'm not sure if this is a bug or a technical limitation, but if you set your voxels color attribute into HDR space, when placed the color value seems to be clamped back into linear range (see screenshot below, left is voxel placed, right is the voxel placement preview rendering correctly). I haven't looked into the source code but am hoping to later this week to see if I can figure it out. Can use material emission to resolve this, but I think the raw color value workflow should also be valid, so that multiple emission levels can be used while keeping material count to a minimum, and just for convenience.
EDIT: I feel like I've made some progress, but am still bamboozled. It seems like both the placement preview cube and the voxelmesh are assembled using voxel_tool.gd using SurfaceTool, and are both setting the vertex colors correctly as far as I can tell from debugging, so I can't tell why only the preview mesh is displaying the colors properly. I was thinking it might have to do with how the material on the preview is displayed, but as far as I can tell it's setup in voxel_cursor.gd setup, and doesn't seem to do anything out of the ordinary. For now I feel like I'm at a bit of a dead end, but I'm gonna look at it some more again some other time
