Class RenderableShapeBuilder
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder
-
- com.badlogic.gdx.graphics.g3d.utils.shapebuilders.RenderableShapeBuilder
-
public class RenderableShapeBuilder extends BaseShapeBuilder
RenderableShapeBuilder builds various properties of a renderable.
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder
matTmp1, tmpColor0, tmpColor1, tmpColor2, tmpColor3, tmpColor4, tmpV0, tmpV1, tmpV2, tmpV3, tmpV4, tmpV5, tmpV6, tmpV7, vertTmp0, vertTmp1, vertTmp2, vertTmp3, vertTmp4, vertTmp5, vertTmp6, vertTmp7, vertTmp8
-
-
Constructor Summary
Constructors Constructor Description RenderableShapeBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbuildNormals(MeshPartBuilder builder, Renderable renderable, float vectorSize, Color normalColor, Color tangentColor, Color binormalColor)Builds normal, tangent and binormal of a Renderable.static voidbuildNormals(MeshPartBuilder builder, RenderableProvider renderableProvider, float vectorSize)Builds normal, tangent and binormal of a RenderableProvider with default colors (normal blue, tangent red, binormal green).static voidbuildNormals(MeshPartBuilder builder, RenderableProvider renderableProvider, float vectorSize, Color normalColor, Color tangentColor, Color binormalColor)Builds normal, tangent and binormal of a RenderableProvider.-
Methods inherited from class com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder
freeAll, obtainM4, obtainV3
-
-
-
-
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 vectornormalColor- Normal vector's colortangentColor- Tangent vector's colorbinormalColor- 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 vectornormalColor- Normal vector's colortangentColor- Tangent vector's colorbinormalColor- Binormal vector's color
-
-