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

displace
d_disp (
float height=1;
)
{
P = wo_space(P);
// Code goes here...
P.y += 1-pow(abs(s-.5)*2,2);
P.y *= height;
P=ow_space(P);
N=computenormal(P);
}
Downloads:
Download: round.vfl 245 B
Please login or Click Here to register for downloads
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
