Function dxlib::ext::from_vts_gl

source ·
pub fn from_vts_gl(
    vts: &Vec<VT>,
    offset: &POS,
    scale: f32,
    tex: bool
) -> Vec<VERTEX3DSHADER>
Expand description

set -Y to convert culling CCW(GL) to CW(DX) (front <-> back)

  • vts_gl 0 1 2 3 (1 2 0 2 3 0) to vss (0 3 2 0 2 1)
  • tex: true: texture color, false: vertex color
  • result vs: Vec<VERTEX3DSHADER>