Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

  • 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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.