Skip to content

Instantly share code, notes, and snippets.

View sasha240100's full-sized avatar
💭
Working remotely

Alexander Buzin sasha240100

💭
Working remotely
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
material: {
kind: "basic", // Material type.
// Three.js properties.
color: 0xff0000,
opacity: 0.5,
transparent: true,
side: THREE.DoubleSide
}
WHS.API.extend({
bannanas: 10,
apples: 15,
pineapples: 20
}, {
apples: 10,
chocolate: 12
});
{
bannanas: 10,
apples: 15,
pineapples: 20,
chocolate: 12
}
new THREE.BoxGeometry(
params.geometry.width,
params.geometry.height,
params.geometry.depth
);
new THREE.SphereGeometry(
params.geometry.radius,
params.geometry.segmentA,
params.geometry.segmentB
);
new THREE.PlaneGeometry(
params.geometry.width,
params.geometry.height,
params.geometry.segments
);
new THREE.CylinderGeometry(
params.geometry.radiusTop,
params.geometry.radiusBottom,
params.geometry.height,
params.geometry.radiusSegments
);
new THREE.DodecahedronGeometry(
params.geometry.radius,
params.geometry.detail
);
new THREE.IcosahedronGeometry(
params.geometry.radius,
params.geometry.detail
);