---
name: "s3d_pep_material"
section: "3"
platform: "linux"
package: "s3d-doc"
version: "0.2.2.1-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/s3d_pep_material"
---

# s3d\_pep\_material(3)

rewrite material

## NAME

s3d\_pep\_material - rewrite material

## SYNOPSIS

```
#include <s3d.h>
```

**int s3d\_pep\_material(int** *object***, float** *amb\_r***, float** *amb\_g***, float** *amb\_b***, float** *spec\_r***, float** *spec\_g***, float** *spec\_b***, float** *diff\_r***, float** *diff\_g***, float** *diff\_b***);**

## DESCRIPTION

Overwriting the latest pushed material, overwriting the current value with the specified one. See s3d\_pep\_materials\_a if you want to pep more materials.

## AUTHOR

**Simon Wunderlich**

Author of s3d
