gpt4 book ai didi

us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.setShininess()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 15:48:49 27 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.setShininess()方法的一些代码示例,展示了YoAppearanceMaterial.setShininess()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearanceMaterial.setShininess()方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial
类名称:YoAppearanceMaterial
方法名:setShininess

YoAppearanceMaterial.setShininess介绍

暂无

代码示例

代码示例来源: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 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/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/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);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com