Skip to main content
gamedev.net
๐Ÿ”’ Locked

lighting algoritms...

Started by gunslinger77 Jan 9, 2004 at 10:58 AM 0 replies 500+ views
Original Post
gunslinger77
gunslinger77
does anyone have a nice simple list of mathematic function that undergo lighting? I am tring to play a bit with fragment programs, but i am getting a bit confused with all the dot4 and mul stuff... I''d like to know the very basic function to compute the final fragment color having the usual stuff, eg the angle between normals, the texture of the poly, the color of the material, the color of the light and so on. thx!
oliii
oliii
if you look on the net for Gouraud shading and Phong shading, you''ll get the lighting calculations performed in fixed-function pipelines (cards with no shaders).
Everything is better with Metal.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.