[Algorithms] Flipping/Rotating through all possible combinations
Brought to you by:
vexxed72
From: Zafar Q. <zaf...@co...> - 2009-12-18 11:16:22
|
Hi, I have done a water-shader but it looks like some of the values I'm refracting to may be wrong, hence picking up wrong sides of an environment map. So, I want to try all possible iterations of swapping or negating x,y and z axes eg. 1) x = -x 2) x= y 3) x = y y = z 4) x= -z y = x etc etc etc Does anyone know of an algorithm for going through all possible iterations? Cheers Zafar Qamar ********************************************************************************** Disclaimer The information and attached documentation in this e-mail is intended for the use of the addressee only and is confidential. If you are not the intended recipient please delete it and notify us immediately by telephoning or e-mailing the sender. Please note that without Codemasters’ prior written consent any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. Attachments to this e-mail may contain software viruses. You are advised to take all reasonable precautions to minimise this risk and to carry out a virus check on any documents before they are opened. Any offer contained in this communication is subject to Codemasters’ standard terms & conditions and must be signed by both parties. Except as expressly provided otherwise all information and attached documentation in this e-mail is subject to contract and Codemasters’ board approval. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Codemasters. This footnote also confirms that this email message has been swept by SurfControl for the presence of computer viruses. ********************************************************************************** |