Jump to content
  • Advertisement

Recommended Posts

Posted (edited)

Games often highlight collectibles with halos or in the case of Wolfenstein with a cycling white stripe.  Its hard to see here with a still image but picture the white stripe moving across the object texture. I assume its done in the collectible's shader code and perhaps its much more simple than I thought but am I on the right track here?

(images from "Wolfenstein New Colossus")


Edited by GameEngineer_gi

Share this post

Link to post
Share on other sites

Yes, this is done in a shader.  This can be one in any number of ways, but I've done something similar by testing the fragment's world position against a value and calculating a color to mix in the with sampled texture.  All you need to do at that point is to sweep the position you're comparing to over the object over a number of frames.

To know how exactly it's done in any particular game or how it could be done in your game, more information would need to be known.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!