# render.PushCustomClipPlane

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/render.PushCustomClipPlane
- **Çeviri tarihi:** 2025-09-08

```lua
render.PushCustomClipPlane( Vector normal, number distance )
```

## Açıklama

Kırpma düzlemi yığınına yeni bir kırpma düzlemi ekler ve onu aktif olarak ayarlar.

> **HATA:** Linux/POSIX'te en fazla 2, Windows'ta ise 6 kırpma düzlemi desteklenmektedir.
> Sorun Takipçisi: [2687](https://github.com/Facepunch/garrysmod-issues/issues/2687)

## Argümanlar

1. [Vector](https://gmod.tr/wiki/Vector) **normal**: Kırpma düzleminin normali.
2. [number](https://gmod.tr/wiki/number) **distance**: Düzlemin dünya başlangıç noktasından uzaklığı. Bunu bulmak için normal ile düzlemdeki herhangi bir nokta arasında [Vector:Dot](https://gmod.tr/wiki/Vector:Dot) kullanabilirsiniz.

### Örnek

Özel varlığınızın alt yarısını kırpar.

```lua
function ENT:Draw()
    local normal = self:GetUp() -- Bu normalin "arkasındaki" her şey kırpılacaktır
    local position = normal:Dot( self:GetPos() ) -- self:GetPos() kırpma düzleminin başlangıç noktasıdır

    local oldEC = render.EnableClipping( true )
    render.PushCustomClipPlane( normal, position )

    self:DrawModel()

    render.PopCustomClipPlane()
    render.EnableClipping( oldEC )
end
```

- [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.PushCustomClipPlane
