Configure Mesh Primitive Types
mainThe Playground allows adding, removing, and duplicating geometries via the Primitives subsection. The default geometries include a Quad and a Sphere, plus any additional .mesh files located in threedgrut_playground/assets.
When adding a primitive, you can change its Type to modify how rays interact with the mesh:
- Glass: Follows Snell's law to refract rays. You can adjust the Refractive Index (IOR) to change the perceived thickness of the medium.
- Mirror: Acts as a perfect mirror, reflecting rays around the mesh normal.
- Diffused Mesh: Uses Lambertian shading for diffusive materials. These can be assigned different materials from the Materials section.
- PBR Mesh: Uses Cook-Torrance shading for Physically Based materials. This mode supports BRDF and BTDF and requires antialiasing and higher Samples per Pixel (SPP) for high-quality rendering.