why 'COLOR1' can not be used between vertex output and pixel input
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?)
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.