Skip to content

Conversation

@Dante-1337
Copy link

@Dante-1337 Dante-1337 commented May 29, 2025

Added 12 new functions to manage material surface properties:

material:get_ambient

float ambient = material:get_ambient()

material:set_ambient

material:set_ambient(float ambient)

material:reset_ambient

material:reset_ambient()

material:get_specular

float specular = material:get_specular()

material:set_specular

material:set_specular(float specular)

material:reset_specular

material:reset_specular()

material:get_diffuse

float diffuse = material:get_diffuse()

material:set_diffuse

material:set_diffuse(float diffuse)

material:reset_diffuse

material:reset_diffuse()

material:get_properties

table<properties> properties = material:get_properties()

Gets all surface properties of a material and returns them to a lua table

material:set_properties

material:set_properties(table <properties>)

material:reset_properties

material:reset_properties()

Enums

surface_properties

  • ambient
  • specular
  • diffuse

Added 12 new functions to manage material surface properties:

### material:get_ambient
```lua
float ambient = material:get_ambient()
```

### material:set_ambient
```lua
material:set_ambient(float specular)
```

### material:reset_ambient
```lua
material:reset_ambient()
```

### material:set_specular
```lua
float specular = material:set_specular()
```

### material:get_specular
```lua
material:get_specular(float specular)
```

### material:reset_specular
```lua
material:reset_specular()
```

### material:get_diffuse
```lua
float diffuse = material:get_diffuse()
```

### material:set_diffuse
```lua
material:set_diffuse(float diffuse)
```

### material:reset_diffuse
```lua
material:reset_diffuse()
```

### material:get_properties
```lua
table<properties> properties = material:get_properties()
```
Gets all surface properties of a material and returns them to a lua table

### material:set_properties
```lua
material:set_properties(table <properties>)
```

### material:reset_properties
```lua
material:reset_properties()
```


# Enums
## surface_properties
- `ambient`
- `specular`
- `diffuse`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant