core.libraries.thirdparty.niknaks.modules.sh_bsp_faces
(no description)
Functions
BuildMesh()
View source »Builds the mesh if face has none.
Returns
-
optional
DebugRender(dontGenerate)
View source »Generates a mesh for the face and renders it.
Parameters
-
dontGenerate
boolean
Returns
-
optional didGenerateMesh
DeleteMesh()
View source »Deletes the mesh generated for the face.
Returns
-
self
GenerateMeshData()
View source »All mesh-data regarding said face. Should use face:GenerateVertexTriangleData intead!
Returns
GenerateVertexData()
View source »Returns a table in form of a polygon-mesh. [Not Cached]
Returns
-
PolygonMeshVertex[]
GenerateVertexTriangleData()
View source »Returns a table in form of a polygon-mesh for triangles. [Not Cached]
Returns
-
optional
GetBModel()
View source »Returns the BModel the face has. 0 if it is part of the world.
Returns
-
number
GetEntity()
View source »Returns the entity-object-data that is part of this face.
Returns
GetFaces()
View source »Returns all faces. ( Warning, uses a lot of memory )
Returns
-
FaceObject[]
GetIndex()
View source »Returns the face-index.
Returns
-
number
GetLightmapSamples()
View source »Returns the lightmap samples for the face.
Returns
-
optional
GetMaterial()
View source »Returns the material the face use. Note: Materials within the BSP is not loaded.
Returns
-
IMaterial
GetMesh()
View source »Returns the mesh generated for the face. Note. Need to call face:BuildMesh first.
Returns
-
optional
GetNormal()
View source »Returns the normal for the face
Returns
-
Vector
GetTexData()
View source »Returns the texture data for the face.
Returns
GetTexInfo()
View source »Returns the texture info for the face.
Returns
GetTexture()
View source »Returns the texture for the face.
GetVertexs()
View source »Returns the vertex positions for the face. [Not Cached] Note this will ignore BModel-positions!
Returns
HasTexInfoFlag(flag)
View source »Returns true if the face's texinfo has said flag.
Parameters
-
flag
Returns
-
boolean
IsDisplacment()
View source »Returns true if the face is part of Displacment
Returns
-
boolean
IsSkyBox()
View source »Returns true if the face is part of 2D skybox.
Returns
-
boolean
IsSkyBox3D()
View source »Returns true if the face is part of 3D skybox.
Returns
-
boolean
IsTranslucent()
View source »Returns true if the face-texture is translucent
Returns
-
boolean
IsWorld()
View source »Returns true if the face is part of the world and not another entity.
Returns
-
boolean
ShouldRender()
View source »Returns true if the face should render.
Returns
-
boolean
Tables
LightmapSample
View source »Documentation for this section is incomplete and needs expanding.
Fields
-
color
Color
-
exponent
number