Round based on s and t
eharetea

The mathematical power of the power used on a VEX displacement shader.

VEX displacement shader.

Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Friday August 01st, 2008 02:00 AM

Round based on s and t - test.3daet.com


displace
d_disp  (
        float height=1; 
        )
{

        wo_space(P);

        // Code goes here...

        P.+= 1-pow(abs(s-.5)*2,2);
        P.*= height;

        P=ow_space(P);
        N=computenormal(P);


}



Downloads:
Download: round.vfl 245 B

Please login or Click Here to register for downloads
Creative Commons License
Round based on s and t by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com