Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 6 7 8 9 10 … 18 Next »
No functions like render.SetScissorRect?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
No functions like render.SetScissorRect?
16-08-2017, 09:49 PM,
#2
Kosmos Offline
GMod Admin
Posts: 180
Threads: 3
Joined: Dec 2013
RE: No functions like render.SetScissorRect?
Person has recently fixed the stencil methods, you can easily use them.
Code:
render.startStencil() -- begin creating the stencil mask render.drawRect(0, 0, 256, 256) -- set the scissor rect (this is the top left corner of a lowres screen) render.drawStencil() -- begin using the stencil while rendering normally -- DRAW STUFF HERE render.endStencil() -- stops using the stencil buffer
I haven't used it since it was fixed yet, but if it works how I think it does (checked, it does) then what you do between startStencil and drawStencil will actually be drawn as well.
I strongly suggest using those instead, they are much more powerful. You can limit rendering to any arbitrary shape, perfect for a UI.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
No functions like render.SetScissorRect? - by Skeleton - 16-08-2017, 07:02 PM
RE: No functions like render.SetScissorRect? - by Kosmos - 16-08-2017, 09:49 PM
RE: No functions like render.SetScissorRect? - by Skeleton - 16-08-2017, 10:29 PM
RE: No functions like render.SetScissorRect? - by Skeleton - 17-08-2017, 01:26 AM

  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.