.. | .. |
---|
12952 | 12952 | "ADD temp.x, temp.x, one.x;" + |
---|
12953 | 12953 | "MUL normal, normal, temp.xxxx;":"" |
---|
12954 | 12954 | ) + |
---|
12955 | | - /**/ |
---|
12956 | | -//// Normalize("normal") + |
---|
12957 | | -//// "MAX normal.z, eps.x, normal.z;" + |
---|
12958 | | -// Normalize("normal") + |
---|
12959 | | - "MOV normald, normal;" + |
---|
12960 | | - "MOV normals, normal;" + |
---|
| 12955 | + /**/ |
---|
12961 | 12956 | |
---|
12962 | 12957 | "MOV temp, fragment.texcoord[4];" + |
---|
12963 | 12958 | |
---|
.. | .. |
---|
12975 | 12970 | "XPD U, V, normal;" + |
---|
12976 | 12971 | Normalize("U") + |
---|
12977 | 12972 | |
---|
| 12973 | + "MOV temp, fragment.texcoord[0];" + |
---|
| 12974 | + |
---|
| 12975 | +// "MAD normal, -temp.x, U, normal;" + |
---|
| 12976 | +// "MAD normal, -temp.y, V, normal;" + |
---|
| 12977 | +// Normalize("normal") + |
---|
| 12978 | + |
---|
| 12979 | +//// "MAX normal.z, eps.x, normal.z;" + |
---|
| 12980 | +// Normalize("normal") + |
---|
| 12981 | + "MOV normald, normal;" + |
---|
| 12982 | + "MOV normals, normal;" + |
---|
| 12983 | + |
---|
12978 | 12984 | // parallax mapping |
---|
12979 | 12985 | |
---|
12980 | 12986 | "DP3 temp2.x, V, eye;" + |
---|
.. | .. |
---|
12987 | 12993 | "RCP temp2.w, temp2.w;" + |
---|
12988 | 12994 | |
---|
12989 | 12995 | "SUB temp2.w, temp2.w, half;" + |
---|
12990 | | -// "SGE temp.x, temp2.w, eps.x;" + |
---|
12991 | | -// "MUL temp2.w, temp2.w, temp.x;" + |
---|
| 12996 | + // "SGE temp.x, temp2.w, eps.x;" + |
---|
| 12997 | + // "MUL temp2.w, temp2.w, temp.x;" + |
---|
12992 | 12998 | |
---|
12993 | | - //"MOV texSamp, U;" + |
---|
| 12999 | + // "MOV texSamp, U;" + |
---|
12994 | 13000 | |
---|
12995 | 13001 | "MUL temp2.z, temp2.z, temp2.w;" + |
---|
12996 | 13002 | "MUL temp2.z, temp2.z, params7.z;" + // parallax |
---|
12997 | 13003 | |
---|
12998 | 13004 | "MUL temp2, temp2, temp2.z;" + |
---|
12999 | | - |
---|
13000 | | - "MOV temp, fragment.texcoord[0];" + |
---|
13001 | 13005 | |
---|
13002 | 13006 | "SUB temp, temp, temp2;" + |
---|
13003 | 13007 | |
---|
.. | .. |
---|
14732 | 14736 | } |
---|
14733 | 14737 | } |
---|
14734 | 14738 | PingThread pingthread = new PingThread(); |
---|
14735 | | - int delta = 5; |
---|
14736 | | - int speed = 5; |
---|
| 14739 | + int delta = 2; |
---|
| 14740 | + int speed = 10; |
---|
14737 | 14741 | boolean autorepeat = false; |
---|
14738 | 14742 | |
---|
14739 | 14743 | void GoDown(int mod) |
---|