# game.Get3DSkyboxInfo

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/game.Get3DSkyboxInfo
- **Çeviri tarihi:** 2026-08-09

```lua
table or nil game.Get3DSkyboxInfo()
```

## Son Eklenenler

Bu yakın zamanda versiyonunda (2026.02.13) eklendi. [Dev Şubesi](https://gmod.tr/wiki/Dev_Branch) - Evet, şimdi.

## Açıklama

Şu anda aktif olan 3 boyutlu gökyüzü kutusu hakkında bilgi gönderir.

## Geri dönüşler

1.. sıralı [Tablo](https://gmod.tr/wiki/table)[Sky3DParams yapısı](https://gmod.tr/wiki/Structures/Sky3DParams)> veya [hiç.](https://gmod.tr/wiki/nil) **Sky3dparams**: 3 boyutlu gökyüzü bilgisi, ya da `nil` Eğer harita 3D skybox'a sahip değilse veya sunucu çalıştırılırken çok erken çağrılmışsa function is.

### Örnek

Ray'in Dünya ve 3D Skybox üzerindeki konumunu gösteriyor.

```lua
local color_green = Color( 0, 255, 0 )

hook.Add( "PostDrawTranslucentRenderables", "MySuper3DHook", function()
	local sky3dparams = game.Get3DSkyboxInfo()
	if ( !sky3dparams ) then return end

	local skyboxOrigin = sky3dparams.origin
	local skyboxScale = sky3dparams.scale

	local client = LocalPlayer()
	local eyepos = client:EyePos()

	local dir = client:EyeAngles():Forward() * 100000000

	local tr = util.TraceLine({
	    start = eyepos;
	    endpos = eyepos + dir;
	    filter = {client:GetVehicle(), client:GetViewEntity() or client};
	    mask = MASK_BLOCKLOS_AND_NPCS;
	})

	local hitPos = tr.HitPos
	local hitSky = tr.HitSky

	if hitSky and GetConVar("r_3dsky"):GetBool() == true then
	    local eye_sky = skyboxOrigin + eyepos / skyboxScale -- gözleri 3 boyutlu gök kutusu alanına dönüştürür.

	    local tr = util.TraceLine({
		    start = eye_sky;
		    endpos = eye_sky + dir;
		    mask = MASK_BLOCKLOS_AND_NPCS;
		})

		hitPos = ( tr.HitPos - skyboxOrigin ) * skyboxScale -- Hitpos'ları 3 boyutlu skybox uzayından dünya alanına dönüştürmek.
	end

	render.SetColorMaterial()
	render.DrawSphere(hitPos, 64, 16, 16, color_green)
end )
```

**Çıkış:** ![](https://gmod.tr/api/uploads/wiki/fdcc4f129aeb8ffd0090.gif)

- [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/game.Get3DSkyboxInfo
