RabidRunner (12-23-2015)
So im trying to make a models/wireframe and models/debug/debugwhite mix up. Like the wireframe would be blue and debug woule be white, idk i just think it looks nice.
Anyways, I tried render.setmaterialoverride and v:SetMaterial but i can only set one material. How do i set 2 materials?
Im kinda going for falcos smalls scripts chams kinda lookalike.
Heres a picture of it. Its an attatchment.
Please dont come in here to post shittalk.
Last edited by Hunter; 01-17-2016 at 09:29 AM.
RabidRunner (12-23-2015)
Moved to the correct section.
script kiddy (12-23-2015)
You'd have to edit the material itself i.e. changing debugwhite or the wireframe material.
this works fine, remember to cache the materials before using themCode:local debugWhite = Material("models/debug/debugwhite") local wireFrame = Material("models/wireframe") local function playerChams(player) cam.Start3D() render.SuppressEngineLighting(false) render.SetColorModulation(1, 0, 0) render.MaterialOverride(debugWhite) cam.IgnoreZ(true) player:DrawModel() render.SetColorModulation(0, 0, 1) render.MaterialOverride(wireFrame) player:DrawModel() cam.IgnoreZ(false) render.SetColorModulation(0, 0, 0) render.SuppressEngineLighting(true) cam.End3D() end local function RenderScreenspaceEffects() local everyPlayer = player.GetAll() for i = 1, #everyPlayer do local player = everyPlayer[i] if (player == nil) then continue end if (!IsValid(player)) then continue end if (player:IsDormant()) then continue end playerChams(player) end end hook.Add("RenderScreenspaceEffects", "", RenderScreenspaceEffects)
Last edited by eth0s; 12-24-2015 at 07:07 AM.
Keepo123 (12-23-2015)
8:53 PM - Xenomorphic 1 hr 7 min cooldown: So is MPGH only exist so people can c+p from ************* and troll the gmod section?
[IMG]https://i739.photobucke*****m/albums/xx38/jorroa5990/flatexch2_zpsec96a7e2.gif[/IMG]
thanks for the help!
Seems this has been solved.
/Closed.