text
stringlengths
0
8.81k
Determines how input texture to a PostProcessStage is sampled.
Properties:
Name
Type
Description
NEAREST
number
Samples the texture by returning the closest texel.
LINEAR
number
Samples the texture through bi-linear interpolation of the four nearest texels.
constant PrimitiveType : number
engine/Source/Core/PrimitiveType.js 8
The type of a geometric primitive, i.e., points, lines, and triangles.
Properties:
Name
Type
Description
POINTS
number
Points primitive where each vertex (or index) is a separate point.
LINES
number
Lines primitive where each two vertices (or indices) is a line segment. Line segments are not necessarily connected.
LINE_LOOP
number
Line loop primitive where each vertex (or index) after the first connects a line to
the previous vertex, and the last vertex implicitly connects to the first.
LINE_STRIP
number
Line strip primitive where each vertex (or index) after the first connects a line to the previous vertex.
TRIANGLES
number
Triangles primitive where each three vertices (or indices) is a triangle. Triangles do not necessarily share edges.
TRIANGLE_STRIP
number
Triangle strip primitive where each vertex (or index) after the first two connect to
the previous two vertices forming a triangle. For example, this can be used to model a wall.
TRIANGLE_FAN