# render.DrawQuad

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/render.DrawQuad
- **Çeviri tarihi:** 2026-05-13

```lua
render.DrawQuad( Vector vert1, Vector vert2, Vector vert3, Vector vert4, Color color = Color( 255, 255, 255 ) )
```

## Açıklama

İki bağlantılı üçgen çiziyor. [render. SetMaterial](https://gmod.tr/wiki/render.SetMaterial).

> **NOT:** Bu bir gösterimdir function that 3 boyutlu görüntüleme bağlamı gerektirir.
>
> Bu sadece çalışacak anlamına gelir. [3D Rendering Hooks](https://gmod.tr/wiki/3D_Rendering_Hooks).

## Argümanlar

1.. [Vektör](https://gmod.tr/wiki/Vector) **Vert1**: İlk zirve.
2.. [Vektör](https://gmod.tr/wiki/Vector) **Vert2**: İkinci zirve.
3.. [Vektör](https://gmod.tr/wiki/Vector) **Vert3**: Üçüncü zirve.
4.. [Vektör](https://gmod.tr/wiki/Vector) **Verti4**: Dördüncü zirve.
5.. [Renk](https://gmod.tr/wiki/Color) **Renkli** = Color( 255, 255, 255): Bahçenin rengi.

### Örnek

Gm_construct'un 0,0,0 altında 150 ünite yukarıya doğru bakan kırmızı yarı şeffaf bir kare çizin.

```lua
local ourMat = Material( "vgui/white" ) -- Çağrı Material() her çerçeve oldukça pahalı
hook.Add( "PostDrawTranslucentRenderables", "DrawQuad_Example", function()

	render.SetMaterial( ourMat ) - Madde kullanıyorsanız, önbelleğe koyun!
	render.DrawQuad( Vector( 0, 0, -150 ), Vector( 0, 100, -150 ),Vector( 100, 100, -150 ), Vector( 100, 0, -150 ), Color( 255, 0, 0, 128 ) )

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.DrawQuad
