}
const featherGeometry = new THREE.PlaneGeometry(1.6, 0.5);
- game.view.materials.feather = new THREE.MeshPhongMaterial({
+ let options = {
map: game.assets.textures['feather-' + game.settings['feather']],
transparent: true,
- alphaTest: 0.5,
+ alphaTest: 0.01,
side: THREE.DoubleSide,
- });
+ }
+ if(game.settings['feather'] == 'golden') {
+ options.color = 0xffffff;
+ options.emissive = 0x644a1e;
+ options.roughness = 0.5;
+ options.metalness = 0.4;
+ }
+ if(game.settings['feather'] == 'ghost') {
+ options.opacity = 0.7;
+ }
+ game.view.materials.feather = new THREE.MeshStandardMaterial(options);
game.objects.feather = new THREE.Mesh(featherGeometry, game.view.materials.feather);
game.objects.feather.rotation.order = 'ZXY';
if(position) {