Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Secondary Color in MultiTexture




On Dec 10, 2004, at 5:05 PM, email@hidden wrote:

1. Are they modulated across the vertexes, like the regular vertex
colors?  This is key :)
2. What's the token -- if any -- that I can use to put them in my
texture combine?  There is no GL_SECONDARY_COLOR but there is:

	glTexEnvi(GL_TEXTURE_ENV,GL_SOURCE0_RGB,GL_CURRENT_SECONDARY_COLOR);
	glTexEnvi(GL_TEXTURE_ENV,GL_OPERAND0_RGB,GL_SRC_COLOR);

I'm not sure that's right, though.

Is this even possible?


According to:

http://oss.sgi.com/projects/ogl-sample/registry/ARB/ texture_env_combine.txt

it is not possible to use the secondary color in TEX_ENV_COMBINE. I visualize secondary color as a constant value that gets added to the fragment after the texture is applied (although it is interpolated across the polygon.

You could use a fragment program to do what you want, you have access to the secondary color there.

Kent

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.