# render.CopyRenderTargetToTexture

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

```lua
render.CopyRenderTargetToTexture( ITexture Target )
```

## Açıklama

O anda aktif olan Render Hedefini belirtilen dokuya kopyalar.

> **UYARI:** Bu, Derinlik Arabelleğini (Depth Buffer) kopyalamaz. Şu an için bunu yapacak bilinen bir yöntem yoktur, bu nedenle yaygın bir geçici çözüm, kaynak dokuyu başka bir yerde saklamak, çizim işlemlerinizi yapmak, sonucu başka bir yere kaydetmek ve kaynak dokuyu yeniden uygulamaktır.

## Argümanlar

1. [ITexture](https://gmod.tr/wiki/ITexture) **Target**: Kopyalanacak doku

### Örnek

[render.CopyTexture](https://gmod.tr/wiki/render.CopyTexture) içerisinde bu şekilde kullanılır.

```lua
function render.CopyTexture( from, to )

	local OldRT = render.GetRenderTarget()

		render.SetRenderTarget( from )
		render.CopyRenderTargetToTexture( to )

	render.SetRenderTarget( OldRT )

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