Skip to main content
gamedev.net
🔒 Locked

why 'COLOR1' can not be used between vertex output and pixel input

Started by tcige 1 reply 950+ views
Original Post
tcige
tcige

the program is ok if using 'TEXCOORD1' to deliver the data

i want to see whether 'COLOR1' also works, and it does not

phil_t
phil_t

It should. But it may be clamped to [0, 1], and it probably of lower precision than the TEXCOORD semantics.

In what range is the data your passing?

Also: when you say something "doesn't work", you need to describe how it doesn't work. Fails to compile? Doesn't produce the expect result (in that case, what it the result?)

tcige
tcige

It should. But it may be clamped to [0, 1], and it probably of lower precision than the TEXCOORD semantics.

In what range is the data your passing?

Also: when you say something "doesn't work", you need to describe how it doesn't work. Fails to compile? Doesn't produce the expect result (in that case, what it the result?)

i use pixel shader to process light, passing vertex's normal and position

it works correctly if position is 'TEXCOORD1', but if position is 'COLOR1' it always be black

Topic Locked

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

Sign in to reply to this topic.