Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

raytracer part 4

Sign in to follow this  


Added a Pigment class to the game, although the only one I have is the solid color version.

I added specular lighting (phong) today! w00t! looks awesome according to me! but... veeeery different from my reference picture. Probably because that's the "first step" pic.

Here's the reference pic

EDIT: godamnit. the images have the colors switched as well as flipped around y-axis... Now I don't know if I'm calculating wrong, or if it's a texture indexing problem. I quick fixed it by indexing from right to left in the texture and manually swapped the colors.
Sign in to follow this  


Recommended Comments

There are no comments to display.

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!