You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Rename shader parameter uniform setter/getter methods for consistency
`shader_uniform` is now consistenly used across both per-shader and per-instance shader uniform methods. This makes methods easier to find in the class reference when looking for them.
This commit is contained in:
@@ -921,8 +921,8 @@ void fragment() {
|
||||
)");
|
||||
handle_material->set_shader(handle_shader);
|
||||
Ref<Texture2D> handle = EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("EditorBoneHandle"), SNAME("EditorIcons"));
|
||||
handle_material->set_shader_param("point_size", handle->get_width());
|
||||
handle_material->set_shader_param("texture_albedo", handle);
|
||||
handle_material->set_shader_uniform("point_size", handle->get_width());
|
||||
handle_material->set_shader_uniform("texture_albedo", handle);
|
||||
|
||||
handles_mesh_instance = memnew(MeshInstance3D);
|
||||
handles_mesh_instance->set_cast_shadows_setting(GeometryInstance3D::SHADOW_CASTING_SETTING_OFF);
|
||||
|
||||
Reference in New Issue
Block a user