This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//THREE.PLYLoader returns a BufferGeometry | |
createMesh(buffGeometry){ | |
let geometry = new THREE.Geometry().fromBufferGeometry( buffGeometry ); | |
var material = new THREE.MeshPhongMaterial( { specular: 0x111111, shininess: 200, vertexColors: THREE.VertexColors } ); | |
var mesh = new THREE.Mesh( geometry, material ); | |
mesh.scale.multiplyScalar( 0.5 ); | |
return mesh; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A demonstration of drawing to a very large texture, capturing the texture in its original size | |
// as a PNG and displaying a down-scaled version of the image within the window each frame. | |
use nannou::prelude::*; | |
fn main() { | |
nannou::app(model).update(update).run(); | |
} | |
struct Model { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct FragmentOutput { | |
[[location(0)]] out_color: vec4<f32>; | |
}; | |
[[block]] | |
struct Data { | |
time: f32; | |
}; | |
[[group(0), binding(0)]] |
OlderNewer