Skip to content

Materials

Lucas Dupont edited this page May 14, 2023 · 1 revision

This page specifies all the parameters necessary for the materials

Emitive

material = {
    type = "emitive";
    intensity = 60;
    color = {r = 255; g = 255; b = 255};
};
  • type: Material type
  • intensity: Emitive intensity
  • color: Emitive color

Lambertian

material = {
    type = "lambertian";
    color = {r = 255.0; g = 255.0; b = 255.0};
};
  • type: Material type
  • color: Lambertian color

Normal

This material is used to display the normals of the primitive

material = {
     type = "normal";
};
  • type: Material type

Reflective

material = {
    type = "reflective";
    reflectivity = 0.8;
    roughness = 0.01;
    color = {r = 202; g = 11; b = 11}; # big red
};
  • type: Material type
  • reflectivity: Reflectivity of this material
  • roughness: Material smoother
  • color: Material color

Refractive

material = {
    type = "refractive";
    refractionIndex = 1.5;
};
  • type: Material type
  • **refractionIndex **: Index of refraction

Transparent

material = {
    type = "transparent";
    opacity = 0.01;
};
  • type: Material type
  • opacity: Opacity
Clone this wiki locally