How to bake a material with a shader to RGB

I want to bake a material to an image, but it has a shader to rgb node, which doesn’t work in cycles.

I tried adding an emission shader and changing the bake type to emit, but that didn’t work.

I also tried baking the texture with all the nodes before the shader to rgb and then plugging the image into the nodes after it, but that also didn’t work. For that, I tried both combined and diffuse.

Does anyone know how I can do this without buying a bake add-on? I’ll attach images of the material, the nodes, and the combined bake output.



You’ve answered your own question.

No, you cannot do that. For exactly the reasons you stated… and, Eevee doesn’t have baking.

My alt solution for you is: try to make your shader, in a way that doesn’t involve ShaderRGB.

aw man. I’ll try that, thanks!

Why do you need to bake? If this is for in-Blender use, no need, and if it’s for a game, you’ll want to avoid baking that stylized lighting anyway and remake the shader using your game engine

Yeah I was planning on seeing what it would look like in my game engine. It may have looked weird but the camera is fixed so lighting wouldn’t necessarily be changing.

I don’t know what game engine you’re using but in all the ones I’m familiar with, you can recreate your shader with just a handful of nodes

alright, I’ll have to do some research on that. I’m using Godot.