Jump to content

Recommended Posts

Posted

Check out how vanilla classes pull their color data for outlines and manipulate it to your liking. In your Render class, you may be able to set the color by enabling color material via 

GlStateManager.enableColorMaterial();

and then changing the color with

GlStateManager.enableOutlineMode([*color int*]);

 

You can look at RenderBoat for an example. Not sure if this works though, I haven't tried it. Also, to get a color without having to do all the math/googling you can use the MathHelper function that takes in 3 ints from 0-255 (RGB) and returns the single int:

public static int rgb(int rIn, int gIn, int bIn)

 

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.

Announcements



×
×
  • Create New...

Important Information

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