- matTRANSFORMATIONS
added:
- pivot point
thats how you have to use the pivot.
var earthPOS = [0,0,0];
///////////////////////////////////
//camera
///////////////////////////////////
var shaderTYPE = 0;
var camrot = [0,0,0];
var campos = [0,0,0];
var camSCREEN = cam(campos,camrot,screenOBJ,shaderTYPE);
///////////////////////////////////
//base screen object
///////////////////////////////////
var texture = textureEARTH;
var pos = [0,0,0];
var scale = [1,1,1];
var rot = [0,spin,0];
var is2D = 1;
var col = [1,1,1,1];
var pivot = [
earthPOS[0],earthPOS [1],earthPOS [2]];
var type = moonMESH;
var obj = earthVIEW_obj;
renderOBJ(camrot,campos,pos,scale,rot,texture,
type ,
obj ,0,0,1,0,col,pivot);
download location:
stay tuned
greetz
dirk
Keine Kommentare:
Kommentar veröffentlichen