system
1
|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
gayminik |
I’m looking to do something to the effect of this:
var material = self.get_node(".").get_next_pass_material()
material.set_shader_param("albedo", Color(1,1,1))
Thanks.
system
2
|
|
|
|
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
.