Is it possible to use a custom shader to add transparency to a ORM material?

Godot Version

v4.2.1

Question

Is it possible to use a custom shader to add transparency to a ORM material?

I am trying to make an effect of disappearing exterior of a building to show the inetrior.

I’m trying this way because there a lot of ready materials available on the net,
but to get this effect with them I would have to convert every one to a shader and add the transparency manually.

I searched for the solution, but so far nothing.
Is it possible?

You might have to do more than that. You should be able to add transparency, but the renderer needs to know you’re doing that; if it assumes your scene is opaque objects, it may cull objects it thinks are invisible even though your transparency should make them visible.

ORM can do transparency from the inspector. you don’t need a shader.
meshinstance also has transparency options on top of that.

you could maybe get away with changing the options in meshinstance (I think it’s in visual instance), otherwise use the shader_parameter method from material.
for an effect that is not per material but per object, you do need a shader with instance uniforms, you can change these per mesh from the meshinstance3D instance shader parameter method.

you can click on your material and convert to shader to get an exact template copy of the current material with all its selected options.

yes.