Round based on s and t

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 -

d_disp  (
        float height=1; 


        // Code goes here...

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



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
Permissions beyond the scope of this license may be available at