-
Notifications
You must be signed in to change notification settings - Fork 0
Materials
Lucas Dupont edited this page May 14, 2023
·
1 revision
This page specifies all the parameters necessary for the materials
material = {
type = "emitive";
intensity = 60;
color = {r = 255; g = 255; b = 255};
};
- type: Material type
- intensity: Emitive intensity
- color: Emitive color
material = {
type = "lambertian";
color = {r = 255.0; g = 255.0; b = 255.0};
};
- type: Material type
- color: Lambertian color
This material is used to display the normals of the primitive
material = {
type = "normal";
};
- type: Material type
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
material = {
type = "refractive";
refractionIndex = 1.5;
};
- type: Material type
- **refractionIndex **: Index of refraction
material = {
type = "transparent";
opacity = 0.01;
};
- type: Material type
- opacity: Opacity