Per pixel lightning

Posts: 21
Joined: 2004.11
Post: #1
Can somebody give me an example (with source code for objc) for per pixel lighting with opengl shading language?

Quote this message in a reply
Posts: 1,199
Joined: 2004.10
Post: #2
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.
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #3
and even if GLSL was supported, the asnwer would be "no" -- cocoa GL sample code is here, . GLSL sample code is all over the web. If you need help combining them, you should be starting somewhere simpler!
Quote this message in a reply
Posts: 156
Joined: 2002.11
Post: #4
Good job, OSC.
Quote this message in a reply
Posts: 1,234
Joined: 2002.10
Post: #5
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.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [CoreGraphics] Image manipulation - pixel by pixel g00se 5 18,883 Jul 28, 2010 08:27 AM
Last Post: ThemsAllTook