- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.setDiffuseColor()
方法的一些代码示例,展示了YoAppearanceMaterial.setDiffuseColor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearanceMaterial.setDiffuseColor()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial
类名称:YoAppearanceMaterial
方法名:setDiffuseColor
暂无
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public static AppearanceDefinition BlackMetalMaterial()
{
YoAppearanceMaterial mat = new YoAppearanceMaterial();
mat.setSpecularColor(0.5f, 0.5f, 0.5f);
mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
mat.setShininess(6.0f);
mat.setAmbientColor(0.16f, 0.18f, 0.2f);
return mat;
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public static AppearanceDefinition FenceMaterial()
{
YoAppearanceMaterial mat = new YoAppearanceMaterial();
mat.setSpecularColor(0.4f, 0.4f, 0.4f);
mat.setDiffuseColor(0.95f, 0.95f, 0.95f);
mat.setShininess(2.0f);
mat.setAmbientColor(0.45f, 0.45f, 0.45f);
return mat;
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public static AppearanceDefinition AluminumMaterial()
{
YoAppearanceMaterial mat = new YoAppearanceMaterial();
mat.setSpecularColor(0.5f, 0.5f, 0.5f);
mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
mat.setShininess(7.5f);
mat.setAmbientColor(0.17f, 0.5f, 0.7f);
return mat;
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public static AppearanceDefinition AluminumMaterial()
{
YoAppearanceMaterial mat = new YoAppearanceMaterial();
mat.setSpecularColor(0.5f, 0.5f, 0.5f);
mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
mat.setShininess(7.5f);
mat.setAmbientColor(0.17f, 0.5f, 0.7f);
return mat;
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public static AppearanceDefinition BlackMetalMaterial()
{
YoAppearanceMaterial mat = new YoAppearanceMaterial();
mat.setSpecularColor(0.5f, 0.5f, 0.5f);
mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
mat.setShininess(6.0f);
mat.setAmbientColor(0.16f, 0.18f, 0.2f);
return mat;
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public static AppearanceDefinition PlaneMaterial()
{
YoAppearanceMaterial mat = new YoAppearanceMaterial();
mat.setSpecularColor(0.5f, 0.5f, 0.5f);
mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
mat.setShininess(7.5f);
mat.setAmbientColor(0.17f, 0.5f, 0.7f);
return mat;
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public static AppearanceDefinition PlaneMaterial()
{
YoAppearanceMaterial mat = new YoAppearanceMaterial();
mat.setSpecularColor(0.5f, 0.5f, 0.5f);
mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
mat.setShininess(7.5f);
mat.setAmbientColor(0.17f, 0.5f, 0.7f);
return mat;
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public static AppearanceDefinition FenceMaterial()
{
YoAppearanceMaterial mat = new YoAppearanceMaterial();
mat.setSpecularColor(0.4f, 0.4f, 0.4f);
mat.setDiffuseColor(0.95f, 0.95f, 0.95f);
mat.setShininess(2.0f);
mat.setAmbientColor(0.45f, 0.45f, 0.45f);
return mat;
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
public static void addRock3D(CombinedTerrainObject3D combinedTerrainObject, Vector3D normal, double centroidHeight, double[][] vertices)
{
// AppearanceDefinition rockAppearance = YoAppearance.DarkGray();
YoAppearanceMaterial rockAppearance = new YoAppearanceMaterial();
rockAppearance.setSpecularColor(0.5f, 0.5f, 0.5f);
rockAppearance.setDiffuseColor(0.4f, 0.4f, 0.4f);
// rockAppearance.setDiffuseColor(0.2f, 0.4f, 0.5f);
rockAppearance.setShininess(6.0f);
rockAppearance.setAmbientColor(0.16f, 0.18f, 0.2f);
ArrayList<Point2D> vertexPoints = new ArrayList<Point2D>();
for (double[] point : vertices)
{
Point2D point2d = new Point2D(point);
vertexPoints.add(point2d);
}
ConvexPolygon2D convexPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(vertexPoints));
RotatableConvexPolygonTerrainObject rock = new RotatableConvexPolygonTerrainObject(normal, convexPolygon, centroidHeight, rockAppearance);
combinedTerrainObject.addTerrainObject(rock);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
appearance.setDiffuseColor(new MutableColor(color));
appearance.setSpecularColor(new MutableColor(color));
appearance.setShininess(5.0f);
代码示例来源:origin: us.ihmc/valkyrie
YoAppearanceMaterial mat = new YoAppearanceMaterial();
mat.setAmbientColor(new MutableColor(0.5f,0.5f,0.5f));
mat.setDiffuseColor(new MutableColor(0.5f,0.5f,0.5f));
mat.setSpecularColor(new MutableColor(0.5f,0.5f,0.5f));
mat.setDiffuseColor(ModelFileLoaderConversionsHelper.stringToColor(tmpvis.getMaterial().getDiffuse()));
mat.setSpecularColor(ModelFileLoaderConversionsHelper.stringToColor(tmpvis.getMaterial().getSpecular()));
代码示例来源:origin: us.ihmc/ihmc-model-file-loader
mat.setDiffuseColor(ModelFileLoaderConversionsHelper.stringToColor(sdfVisual.getMaterial().getDiffuse()));
mat.setSpecularColor(ModelFileLoaderConversionsHelper.stringToColor(sdfVisual.getMaterial().getSpecular()));
本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.setDiffuseColor()方法的一些代码示例,展示了
本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.setAmbientColor()方法的一些代码示例,展示了
本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.getSpecularColor()方法的一些代码示例,展示
本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.getAmbientColor()方法的一些代码示例,展示了
本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.setShininess()方法的一些代码示例,展示了YoA
本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.setSpecularColor()方法的一些代码示例,展示
我是一名优秀的程序员,十分优秀!