# render.SetModelLighting

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/render.SetModelLighting
- **Çeviri tarihi:** 2026-08-12

```lua
render.SetModelLighting( number lightDirection, number red, number green, number blue )
```

## Description

Sets up the ambient lighting for any upcoming render operation. Ambient lighting can be seen as a cube enclosing the object to be drawn, each of its faces representing a directional light source that shines towards the object. Thus, there is a total of six different light sources that can be configured separately.

Işık renk bileşenleri belirli bir aralıkla sınırlı değildir (yani 0-1), bunun yerine daha yüksek değerler parlak bir ışığa neden olur.

[render.ResetModelLighting](https://gmod.tr/wiki/render.ResetModelLighting) will set all 6 directions at once. See also [render.SetLocalModelLights](https://gmod.tr/wiki/render.SetLocalModelLights).

## Arguments

1. [number](https://gmod.tr/wiki/number) with [BOX enum](https://gmod.tr/wiki/Enums/BOX) **lightDirection**: The light source to edit, see [BOX enum](https://gmod.tr/wiki/Enums/BOX).
2. [number](https://gmod.tr/wiki/number) **red**: The red component of the light color. In range of [0,1]
3. [number](https://gmod.tr/wiki/number) **green**: The green component of the light color. In range of [0,1]
4. [number](https://gmod.tr/wiki/number) **blue**: The blue component of the light color. In range of [0,1]

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/render.SetModelLighting
