libgpac
Documentation of the core library of GPAC
VertexAttrib Interface Reference

import"evg.idl";

Public Member Functions

 VertexAttrib (Float32Buffer data, long nb_components, optional AttributeMapType map=GF_EVG_VAI_VERTEX_INDEX)
 

Data Fields

writeonly boolean normalize
 

Detailed Description

Vertex attribute buffer used by vertex shaders

Constructor & Destructor Documentation

◆ VertexAttrib()

VertexAttrib::VertexAttrib ( Float32Buffer  data,
long  nb_components,
optional AttributeMapType  map = GF_EVG_VAI_VERTEX_INDEX 
)

constructor

Parameters
datafloat buffer containing the vertex attribute data
nb_componentsnumber of floats per attribute
mapmapping mode of attribute per vertex or primitive

Field Documentation

◆ normalize

writeonly boolean VertexAttrib::normalize

if set, the attribute value will be normalized upon fetch by the shader