Click or drag to resize
Ab4d.SharpEngine logo

MeshFactoryCreateSkyBoxMesh Method

CreateSkyBoxMesh creates a box mesh with inverted normals, adjusted texture coordinates and flipped triangle order to correctly show the sky box (using Material and not BackMaterial property to set the sky box textures). The center of the sky box is at (0, 0, 0) and its size is defined by the size parameter.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public static StandardMesh CreateSkyBoxMesh(
	float size,
	string? name = "SkyBoxMesh"
)

Parameters

size  Single
sky box size
name  String  (Optional)
optional name for the mesh

Return Value

StandardMesh
StandardMesh with filled vertices array and index array
See Also