InlineMatrixArrayTexture (object)

バージョン 1.12.0 で追加.

The InlineMatrixArrayTexture provides a facility to upload large amounts of matrices as a texture. These can then be used in a skinning shader, for example, to deform crowds.

InlineMatrixArrayTexture InlineMatrixArrayTexture InlineMatrixArrayTexture InlineTexture InlineTexture InlineMatrixArrayTexture->InlineTexture InlineEntityBase InlineEntityBase InlineTexture->InlineEntityBase InlineEntity InlineEntity InlineEntityBase->InlineEntity

/*
** Example: InlineMatrixArrayTexture
*/

require InlineDrawing;
  
operator entry() {

  InlineDrawing draw = OGLInlineDrawing();
  
  // register the texture in the drawing
  InlineMatrixArrayTexture texture = draw.registerTexture(InlineMatrixArrayTexture('crowdMatrices'));
  
  // update the texture later with new poses
  Mat44 poses[];
  poses.resize(1024);
  
  // add some code to fill the poses
  
  texture.update(poses);
  
}

/*
** Output:


*/

Methods in detail

InlineMatrixArrayTexture ( in InlineMatrixArrayTexture other )

copy constructor


InlineMatrixArrayTexture ( in String name )

standard constructor with a name only


InlineMatrixArrayTexture ( in String name, in Mat44 matrices[] )

standard constructor with a name and matrix data


InlineMatrixArrayTexture ()

standard constructor


InlineMatrixArrayTexture InlineMatrixArrayTexture.clone? ()

clone method


InlineMatrixArrayTexture.update! ( in Mat44 matrices[] )

updates the texture with the data provides in the array