send uv data with intersect
parent
23083a6ef1
commit
a1b5cd4347
|
@ -177,7 +177,11 @@ GameLib.D3.Raycaster.prototype.getIntersectedObjects = function(meshes) {
|
||||||
mesh: mesh,
|
mesh: mesh,
|
||||||
distance : intersects[0].distance,
|
distance : intersects[0].distance,
|
||||||
face: mesh.geometry.faces[intersects[0].faceIndex],
|
face: mesh.geometry.faces[intersects[0].faceIndex],
|
||||||
faceIndex: intersects[0].faceIndex
|
faceIndex: intersects[0].faceIndex,
|
||||||
|
uv : {
|
||||||
|
x : intersects[0].uv.x,
|
||||||
|
y : intersects[0].uv.y
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,6 +177,7 @@ GameLib.Image.prototype.getHeightData = function() {
|
||||||
|
|
||||||
var pixels = this.getPixelData();
|
var pixels = this.getPixelData();
|
||||||
|
|
||||||
|
|
||||||
var data = new Float32Array( this.width * this.height );
|
var data = new Float32Array( this.width * this.height );
|
||||||
|
|
||||||
var height, i, j = 0;
|
var height, i, j = 0;
|
||||||
|
|
Loading…
Reference in New Issue