ToggleLightDirection – toggles the light direction, between the standard and alternate one.
F6 script:var dir = moi.view.lightDirection; if ( dir.x == 1 && dir.y == 1 && dir.z == -1 ) { dir.set(-0.5,1,0); } else { dir.set(1,1,-1); } moi.view.lightDirection = dir;
http://kyticka.webzdarma.cz/3d/moi/
|