Skip to main content
gamedev.net
🔒 Locked

multitexturing question

Started by durmieu Aug 27, 2006 at 2:43 AM 0 replies 750+ views
Original Post
durmieu
durmieu
I'm trying to get the following blend of textures in my game, but can not get to the right formula for it. What I'm looking for is a way to darken the first texture with the second one only some percentage like: uno+dos = tres [help] how could I achieve this effect so I could select the amount of blend on the fly? thank you. [Edited by - durmieu on August 27, 2006 4:01:22 AM]
Brother Bob
Brother Bob
Check here.

Bind the mask to first texture unit and modulate primary color and (1 - texture color). Bind the leaf texture to the second texture unit, and modulate the texture color and (1 - previous combiner output).

The amount of darkening is set by the primary color. That is, glColor or similar functions. So you can specify the amount per vertex if you like.

Topic Locked

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

Sign in to reply to this topic.