HLSL if statement problem

Started by
10 comments, last by remigius 15 years, 11 months ago
Sorry Regimus, credit goes to you for pointing me in the direction of all/any, and Dave to the addition/subtraction idea!


Everyone's a winner!

EDIT: Changed it to any(val.rgb) as suggested. Still 4 instructions but looks neater. Thanks.
---When I'm in command, every mission's a suicide mission!
Advertisement
Quote:Original post by theZapper
Sorry Regimus, credit goes to you for pointing me in the direction of all/any, and Dave to the addition/subtraction idea!


Everyone's a winner!

EDIT: Changed it to any(val.rgb) as suggested. Still 4 instructions but looks neater. Thanks.


Hehe, no problem [smile]

Rim van Wersch [ MDXInfo ] [ XNAInfo ] [ YouTube ] - Do yourself a favor and bookmark this excellent free online D3D/shader book!

This topic is closed to new replies.

Advertisement