ucupumar / ucupaint

Ucupaint is Blender addon to manage texture layers for Eevee and Cycles renderer.
GNU General Public License v3.0
1.24k stars 37 forks source link

Add Alpha to quick node setup #180

Closed passivestar closed 4 days ago

passivestar commented 4 days ago

It's common for game assets to have transparency (glass panels, fences, etc), and being able to control alpha through a separate channel is convenient so it makes sense to have this button. GLTF exporter picks it up with no problem, tested this workflow with Godot

image

P.S. GLTF also has support for emission which can be useful in texture sets, I'll test the support for that with GLTF in Godot later as well and open another PR. Then ucupaint will properly support the regular gamedev texturing pipeline

ucupumar commented 4 days ago

I'm sorry but I can't accept this PR, Ucupaint already has a better way of handling alpha. You can enable the alpha in the main channel settings.

image

You can see various demos of channel alpha here:

Alpha should be tied to the RGB channel because the RGB value should be divided by alpha when doing the blending process. Without this, the transition between 0..1 alpha will have incorrect color.

Users can of course always create a dedicated alpha channel like you did here, but it should not be included in the first preset since there's a better way like I mentioned before.