About Store Forum Documentation Contact



Post Reply 
2 Texture Coordinates and Materials
Author Message
gra Offline
Member

Post: #1
2 Texture Coordinates and Materials
Hi

I have mesh with 2 channels texture coordinates.
Channel 1 - for main color texture and will change uv`s coordinates (scale,transformations).
Channel 2 - for light map and should not change coordinate.

How in code i can apply to mesh main color texture (1 channel text. coord.) and light map (2 channel text. coord.).

(probably I should create two materials but as them to apply to channel 1 and to channel 2)

thanks!
09-21-2011 10:24 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: 2 Texture Coordinates and Materials
use 1 material and set light map, it will use 2nd set of coordinates
mesh.texMove texScale accept tex channel index
09-21-2011 10:39 AM
Find all posts by this user Quote this message in a reply
Post Reply