Custom shader texture input?
Posted: Wed Sep 09, 2020 6:12 pm
Soo i have a shader question,
is it possible to use the output of a material as an input texture in the material editor?
To specify a bit further what I'm trying to achieve, I made a quick mockup in shadertoy:
https://www.shadertoy.com/view/tl2Bzd
I know how to convert the shader to a MM material, but I can't figure out how to reference a texture from another quad layer
So basically in the example line 7 on shadertoy:
vec4 col = texture(iChannel0, uv1);
I need to replace "iChannel0" with something referencing the texture of another MM material.
Anybody here know how to do this? Is something like this possible?
is it possible to use the output of a material as an input texture in the material editor?
To specify a bit further what I'm trying to achieve, I made a quick mockup in shadertoy:
https://www.shadertoy.com/view/tl2Bzd
I know how to convert the shader to a MM material, but I can't figure out how to reference a texture from another quad layer
So basically in the example line 7 on shadertoy:
vec4 col = texture(iChannel0, uv1);
I need to replace "iChannel0" with something referencing the texture of another MM material.
Anybody here know how to do this? Is something like this possible?