![]() |
|
render.enableScissorRect() - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Feedback (https://teamscm.co.uk/forum-9.html) +--- Forum: Suggestions and improvements (https://teamscm.co.uk/forum-11.html) +--- Thread: render.enableScissorRect() (/thread-2846.html) |
render.enableScissorRect() - The17thDoctor - 19-10-2018 I tried using the render.enableScissorRect() on a starfall emitter and I came up with a strange bug meaning the rect was depending of my angle of view ,like if the rectangle was attached to my camera, I guess its a bug cause it should in theory just cut what's beyond the coords but local to the emitter Here is a part of my code that should help you notice the bug :
RE: render.enableScissorRect() - Person8880 - 19-10-2018 They're not supposed to be used in 3D2D cameras, they only work in screens, render targets and HUDs (i.e. 2D contexts). I've changed the function to error when used in 3D2D. RE: render.enableScissorRect() - The17thDoctor - 19-10-2018 (19-10-2018, 04:41 PM)Person8880 Wrote: They're not supposed to be used in 3D2D cameras Aww too bad, couldnt there be a way to do a 3D2D equivalent of that function ?
|