在godot4中有一个很简单的方法可以实现模型的线框模式,就是利用着色器的渲染模式 shader_type spatial; render_mode wireframe,unshaded; varying vec4 color; varying vec3 normal; void vertex() { / / Called for every vertex the material is visible on. } void fragment() { if(ALBEDO.r+ALBEDO.g+ALBEDO.b<0.001){ discard; } ALBEDO=vec3(VERTEX.y,0.0,0.0); // Called for every pixel the material is visible on. }