Reply From: | sash-rc |
Next pass material is a property of Material
, not Mesh
var mat : Material = mesh.surface_get_material(0)
var mat_next : Material = mat.get_next_pass()
Also note you probably need to cast it as ShaderMaterial
.
Reply From: | sash-rc |
Next pass material is a property of Material
, not Mesh
var mat : Material = mesh.surface_get_material(0)
var mat_next : Material = mat.get_next_pass()
Also note you probably need to cast it as ShaderMaterial
.