MeshPhysicalMaterial on Plasma

This commit is contained in:
Adrien MALINGREY 2024-09-27 03:06:36 +02:00
parent 1b0f1c07d2
commit 8c5b704b3c
2 changed files with 13 additions and 9 deletions

View File

@ -129,11 +129,9 @@ export class TetraGUI extends GUI {
envMap: environment, envMap: environment,
side: THREE.DoubleSide, side: THREE.DoubleSide,
transparent: true, transparent: true,
opacity: 0.6, opacity: 0.7,
roughness: 0.5, roughness: 0.6,
metalness: 0.67, metalness: 1,
attenuationDistance: 0.5,
ior: 2,
sheen: 0, sheen: 0,
sheenRoughness: 1, sheenRoughness: 1,
specularIntensity: 1, specularIntensity: 1,

View File

@ -132,13 +132,19 @@ class InstancedMino extends THREE.InstancedMesh {
class Mino extends THREE.Object3D { class Mino extends THREE.Object3D {
static materials = { static materials = {
Plasma: new THREE.MeshStandardMaterial({ Plasma: new THREE.MeshPhysicalMaterial({
envMap: environment, envMap: environment,
side: THREE.DoubleSide, side: THREE.DoubleSide,
transparent: true, transparent: true,
opacity: 0.8, opacity: 0.7,
roughness: 0.48, roughness: 0.6,
metalness: 0.67, ior: 1.8,
metalness: 0.6,
sheen: 0,
sheenRoughness: 1,
specularIntensity: 1,
thickness: 5,
transmission: 1,
}), }),
Espace: new THREE.MeshStandardMaterial({ Espace: new THREE.MeshStandardMaterial({
envMap: environment, envMap: environment,