Full 3D toolkitMateria includes meshes, geometries, textures, shaders, lights, cameras, and post-processing effects—everything you need for 3D graphics.Explore the full API and examples in the docs.Open documentation // Create scene and camera
val scene = Scene()
val camera = PerspectiveCamera(
fov = 75f,
aspect = 16f / 9f,
near = 0.1f,
far = 1000f
).apply {
position.set(0f, 2f, 5f)
lookAt(Vector3.ZERO)
}
// Create geometry and material
val geometry = BoxGeometry(1f, 1f, 1f)
val material = MeshStandardMaterial(
color = Color(0f, 1f, 0f),
metalness = 0.3f,
roughness = 0.4f
)
// Create mesh and add to scene
val cube = Mesh(geometry, material)
scene.add(cube)
// Render
renderer.render(scene, camera)