Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 tcige   Members   -  Reputation: 206

Like
0Likes
Like

Posted 17 June 2013 - 12:06 PM

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

 

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



Sponsor:

#2 phil_t   Crossbones+   -  Reputation: 5577

Like
0Likes
Like

Posted 17 June 2013 - 12:19 PM

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?)



#3 tcige   Members   -  Reputation: 206

Like
0Likes
Like

Posted 17 June 2013 - 12:38 PM

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






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS