RodZill4 / material-maker

A procedural textures authoring and 3D model painting tool based on the Godot game engine
MIT License
3.44k stars 217 forks source link

Math Functions turn Colored Images into greyscale #703

Open mrjustaguy opened 3 weeks ago

mrjustaguy commented 3 weeks ago

Material Maker version:

1.3

OS/device including version:

Windows 11

Issue description:

The Input and Output of this should be the same, as x+0=x, but they're not. Other math operations also have the same issue, such as x*1 which should output x but also returns greyscale

Input: image

Output: image

Steps to reproduce: Apply Math to anything with Color Get incorrect Greyscale Output

williamchange commented 3 weeks ago

Math only outputs greyscale images and takes in greyscale inputs, for colors they are implicitly converted to greyscale by taking the average of the RGB channels(similar as greyscale node set to Average mode), if you want to process colors you can use e.g. a vec3 math node

image