Class RenderableShapeBuilder


  • public class RenderableShapeBuilder
    extends BaseShapeBuilder
    RenderableShapeBuilder builds various properties of a renderable.
    • Constructor Detail

      • RenderableShapeBuilder

        public RenderableShapeBuilder()
    • Method Detail

      • buildNormals

        public static void buildNormals​(MeshPartBuilder builder,
                                        RenderableProvider renderableProvider,
                                        float vectorSize)
        Builds normal, tangent and binormal of a RenderableProvider with default colors (normal blue, tangent red, binormal green).
        Parameters:
        builder -
        renderableProvider -
        vectorSize - Size of the normal vector
      • buildNormals

        public static void buildNormals​(MeshPartBuilder builder,
                                        RenderableProvider renderableProvider,
                                        float vectorSize,
                                        Color normalColor,
                                        Color tangentColor,
                                        Color binormalColor)
        Builds normal, tangent and binormal of a RenderableProvider.
        Parameters:
        builder -
        renderableProvider -
        vectorSize - Size of the normal vector
        normalColor - Normal vector's color
        tangentColor - Tangent vector's color
        binormalColor - Binormal vector's color
      • buildNormals

        public static void buildNormals​(MeshPartBuilder builder,
                                        Renderable renderable,
                                        float vectorSize,
                                        Color normalColor,
                                        Color tangentColor,
                                        Color binormalColor)
        Builds normal, tangent and binormal of a Renderable.
        Parameters:
        builder -
        renderable -
        vectorSize - Size of the normal vector
        normalColor - Normal vector's color
        tangentColor - Tangent vector's color
        binormalColor - Binormal vector's color