Jump to content

[Request] A bunch of hooks to enable basic shaders


Recommended Posts

Posted

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? :P

 

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 =)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.