diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-11-12 12:23:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-12 12:23:34 +0100 |
commit | a54bd6e868a3cbaf8c9033815a798a3f5c1107ef (patch) | |
tree | 819476e2f71099a386b3e7dccd548818ddca0143 /scene/resources/visual_shader_particle_nodes.cpp | |
parent | 55b49dc71b687b9edf640ae2264879852f0b0503 (diff) | |
parent | 826e781bfa90f55eed579e9b512a19b0c1c19ba4 (diff) |
Merge pull request #53914 from Chaosus/shader_default_texture_param
Diffstat (limited to 'scene/resources/visual_shader_particle_nodes.cpp')
-rw-r--r-- | scene/resources/visual_shader_particle_nodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/visual_shader_particle_nodes.cpp b/scene/resources/visual_shader_particle_nodes.cpp index 5bdaa8b272..c8f6e9182f 100644 --- a/scene/resources/visual_shader_particle_nodes.cpp +++ b/scene/resources/visual_shader_particle_nodes.cpp @@ -351,11 +351,11 @@ String VisualShaderNodeParticleMeshEmitter::generate_code(Shader::Mode p_mode, V Vector<VisualShader::DefaultTextureParam> VisualShaderNodeParticleMeshEmitter::get_default_texture_parameters(VisualShader::Type p_type, int p_id) const { VisualShader::DefaultTextureParam dtp_vx; dtp_vx.name = make_unique_id(p_type, p_id, "mesh_vx"); - dtp_vx.param = position_texture; + dtp_vx.params[0] = position_texture; VisualShader::DefaultTextureParam dtp_nm; dtp_nm.name = make_unique_id(p_type, p_id, "mesh_nm"); - dtp_nm.param = normal_texture; + dtp_nm.params[0] = normal_texture; Vector<VisualShader::DefaultTextureParam> ret; ret.push_back(dtp_vx); |