Per pixel lightning
Can somebody give me an example (with source code for objc) for per pixel lighting with opengl shading language?
tnx
tnx
GLSL isn't available on the mac... and god knows if it ever will be. You'll have to read up on the assembly-like ARB_fragment_program 1.0 -- I recommend _The OpenGL Superbible_. It's a good resource, with a lot of working sample code.
and even if GLSL was supported, the asnwer would be "no" -- cocoa GL sample code is here, http://onesadcookie.com/book.html . GLSL sample code is all over the web. If you need help combining them, you should be starting somewhere simpler!
Good job, OSC.
You don't need GLSL or fragment programs to do "per-pixel lighting."
ARB_texture_env_dot3 will do per pixel bump mapping, and works on a plain old Radeon or GeForce 2MX.
ARB_texture_env_dot3 will do per pixel bump mapping, and works on a plain old Radeon or GeForce 2MX.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| [CoreGraphics] Image manipulation - pixel by pixel | g00se | 5 | 7,094 |
Jul 28, 2010 08:27 AM Last Post: ThemsAllTook |
|

