Materiales Autoiluminados

Cuando se desea definir un material para emular que emite luz, como por ejemplo un fluorescente, se puede utilizar el field emissiveColor. Con este field se puede definir el color que emite el material sin necesidad de que haya una fuente de luz que ilumine.

Ejemplo2: Definición de materiales autoiluminados.

Transform {
 translation -1.5 0 0
 children Shape {
  geometry Cylinder { radius 0.2 height 8 }
  appearance Appearance {
   material Material {
    diffuseColor 0.5 0.5 0.5
   }
  }
 }
}
Transform {
 translation -0.5 0 0
 children Shape {
  geometry Cylinder { radius 0.2 height 8 }
  appearance Appearance {
   material Material {
    diffuseColor 0.5 0.5 0.5
    emissiveColor 1 1 1
   }
  }
 }
}
Transform {
 translation 0.5 0 0
 children Shape {
  geometry Cylinder { radius 0.2 height 8 }
  appearance Appearance {
   material Material {
    diffuseColor 0.5 0.5 0.5
    emissiveColor 1 1 0
   }
  }
 }
}
Transform {
 translation 1.5 0 0
 children Shape {
  geometry Cylinder { radius 0.2 height 8 }
  appearance Appearance {
   material Material {
    diffuseColor 0.5 0.5 0.5
    emissiveColor 0.6 1 1
   }
  }
 }
}

0 comentarios:

Publicar un comentario