Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update material_color to use Entity. #415

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions proto/gz/msgs/material_color.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,54 @@
syntax = "proto3";
package gz.msgs;
option java_package = "com.gz.msgs";
option java_outer_classname = "MaterialProtos";
option java_outer_classname = "MaterialColorProtos";

/// \ingroup gz.msgs
/// \interface MaterialColor
/// \brief Color description for an entities link-visual material.

import "gz/msgs/color.proto";
import "gz/msgs/entity.proto";
import "gz/msgs/header.proto";

message MaterialColor
{
/// \brief Optional header data
Header header = 1;

/// \brief Name of link-visual.
string name = 2;

/// \brief Name of parent enitity for link-visual.
string parent_name = 3;
/// \brief Entity for which material colors are going to be modified.
///
/// The entity should be a visual element of a link that may exist
/// in a world or model.
/// The entity name (entity.name) will be used as an scoped name.
/// For example, in this
/// hierarchy:
///
/// world_name
/// model_name
/// link_name
/// visual_name
///
/// All these names will return the link entity:
///
/// * world_name::model_name::link_name::visual_name
/// * model_name::link_name::visual_name
/// * link_name::visual_name
/// * visual_name
Entity entity = 2;

/// \brief Ambient color
Color ambient = 4;
Color ambient = 3;

/// \brief Diffuse color
Color diffuse = 5;
Color diffuse = 4;

/// \brief Specular color
Color specular = 6;
Color specular = 5;

/// \brief Emissive color
Color emissive = 7;
Color emissive = 6;

/// \brief Specular exponent
double shininess = 7;
}