libgpac
Documentation of the core library of GPAC
|
import"evg.idl";
Public Member Functions | |
VertexAttribInterpolator (Float32Buffer data, long nb_components, optional AttributeMapType map=GF_EVG_VAI_VERTEX_INDEX) | |
VertexAttribInterpolator (long nb_components) | |
Data Fields | |
writeonly boolean | normalize |
Vertex attribute interpolator used by fragment shaders
VertexAttribInterpolator::VertexAttribInterpolator | ( | Float32Buffer | data, |
long | nb_components, | ||
optional AttributeMapType | map = GF_EVG_VAI_VERTEX_INDEX |
||
) |
constructor
This constructor is typically used for vertex attributes that do not need any modification at the vertex shader stage and are directly interpolated in the fragment shader
data | float buffer containing the vertex attribute data |
nb_components | number of floats per attribute |
map | mapping mode of attribute per vertex or primitive |
VertexAttribInterpolator::VertexAttribInterpolator | ( | long | nb_components | ) |
constructor
This constructor is used for vertex attributes that are fetched through VertexAttrib in the vertex shader and need to be passed to the fragment shader
nb_components | number of floats per attribute |
writeonly boolean VertexAttribInterpolator::normalize |
if set, the attribute value will be normalized upon fetch by the shader