Changeset 2010
 Timestamp:
 Oct 12, 2012, 1:51:19 AM (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/tools/neercs/video/postfx.lolfx
r2007 r2010 66 66 c+=vec3(ca1.x,c.y,ca2.z); // chromatic aberration 67 67 68 vec3 c1=vec3(0.3,0.2,0.2); 69 vec3 c2=vec3(1.0,1.0,1.0); 70 vec3 c3=vec3(0.0,0.4,0.7); 68 vec3 c1=vec3(0.2,0.1,0.0); 69 vec3 c2=vec3(0.7,0.5,0.5); 70 vec3 c3=vec3(1.0,1.0,1.0); 71 vec3 c4=vec3(0.0,0.5,0.7); 72 vec3 c5=vec3(0.0,0.1,0.2); 73 vec3 r; 74 float k=z.y+1.0;//(p.y+1.0)/2.0; 71 75 72 c+=((p.y<0.0)?mix(c1,c2,1.0+p.y):mix(c2,c3,p.y))*0.25; // reflection 76 if(k<=0.1) r=mix(c1,c2,k*(1/0.1)); 77 if(k>0.1&&k<0.2) r=mix(c2,c3,(k0.1)*(1.0/0.1)); 78 if(k>0.2&&k<0.3) r=mix(c3,c4,(k0.2)*(1/0.1)); 79 if(k>=0.3) r=mix(c4,c5,k*((k0.3)/0.7)); 80 81 c+=r*0.5; // reflection 73 82 74 83 c*=moire_h.x+moire_h.y*sin(z.y*float(screen_size.y*moire_h.z))*sin(0.5+z.x*float(screen_size.x*moire_h.w)); // moire h
Note: See TracChangeset
for help on using the changeset viewer.