• ### Announcements

#### Archived

This topic is now archived and is closed to further replies.

# Textures in a vertex program

## Recommended Posts

How do use textures in vertex program? This is what I have:
ATTRIB vtco = vertex.texcoord;
...
...
OUTPUT  otco = result.texcoord;

...
...
# Use LIT to calculate lighting coefficients
LIT dots, dots;

# Calculate color contributions
MOV ocol.w, lightDiff.w;

# Texture coordinates
#MOV otco, vtco;

I''m not passing in coords myself as I''m using sphere map tex coord generation, but even if I was passing them in myself I don''t know what I have to do with them in the program. What I''m doing above is just passing the incoming coordinates straight to the output vertex. Is this correct, it doesn''t seem to have any effect. Do I have to combine the texture with the color or something?

• ## Partner Spotlight

• ### Forum Statistics

• Total Topics
627682
• Total Posts
2978614

• 13
• 12
• 10
• 12
• 22