material-maker icon indicating copy to clipboard operation
material-maker copied to clipboard

Math Functions turn Colored Images into greyscale

Open mrjustaguy opened this issue 1 year ago • 1 comments

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

mrjustaguy avatar Aug 20 '24 10:08 mrjustaguy

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

williamchange avatar Aug 24 '24 06:08 williamchange