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.
HLSL if statement problem
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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement