Posted November 17, 201212 yr Hey, I've set up a basic shader for one of my mods, and need to edit a few classes for it to work. [Yeah, OpenGL doesn't exactly provide much information, by default...]. Making this work required me to modify EntityRenderer, RenderGlobal, and GuiIngame. I understand these are quite popular classes to be edited, for any rendering mod, so I'd very much love to leave them to Forge. These are about 15 hooks in total, with about 10 different new methods called. Instead of describing where all the hooks are, exactly, I've set up 3 pastebins. All changes I made are marked with //Psyche, so just ctrl+f that. This is 1.4.2 code, btw. --> Alright, no Mojang code. Here's the edited description: http://pastebin.com/AF2yv57Q About GuiIngame: I know you're supposed to render overlays inside the update methods, but that's, well, bad code. It can't really hurt to have a separate overlay method, right? It might be that I'll want to add 2 or three new ones sometime later. This, though, works pretty perfectly for any (basic) shader. Thanks for your time! I know this is not the most basic thing to request, but it would be pretty damn cool if this were actually added =)
November 18, 201212 yr Author Okay, I described the hooks instead of posting Mojang code. I hope it's still understandable, but if one of these isn't, please tell me =)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.