render.DrawTextureToScreenRect
Açıklama
Tasarımlı dikdörtgen çizer.
Bu bir rendering function that 2D rendering bağlamı gerektiriyor.
Bu, sadece çalışacaktır.2D Rendering Hooks
Argümanlar
Örnek
local mat = CreateMaterial( "testHackTexture", "UnlitGeneric", {
["$basetexture"] = "_rt_WaterRefraction",
} )
local refractTex = mat:GetTexture( "$basetexture" )
mat:SetTexture( "$basetexture", "_rt_WaterReflection" )
local reflectTex = mat:GetTexture( "$basetexture" )
hook.Add( "HUDPaint", "drawWaterReflectRefract", function()
render.DrawTextureToScreenRect( refractTex, 0, 0, ScrW() / 3, ScrH() / 3 )
render.DrawTextureToScreenRect( reflectTex, ScrW() / 3 * 2, 0, ScrW() / 3, ScrH() / 3 )
end )
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord