Rev 6134 | Rev 6243 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6134 | Rev 6145 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | fmul dword[eax+offs_cont_viewport+offs_vpor_scale+offs_Y] |
31 | fmul dword[eax+offs_cont_viewport+offs_vpor_scale+offs_Y] |
32 | fadd dword[eax+offs_cont_viewport+offs_vpor_trans+offs_Y] |
32 | fadd dword[eax+offs_cont_viewport+offs_vpor_trans+offs_Y] |
33 | fistp dword[ebx+offs_vert_zp+offs_zbup_y] ;v.zp.y = st0, st0 = st1 |
33 | fistp dword[ebx+offs_vert_zp+offs_zbup_y] ;v.zp.y = st0, st0 = st1 |
Line 34... | Line 34... | ||
34 | 34 | ||
35 | fld dword[ebx+offs_vert_pc+offs_Z] ;st0 = v.pc.Z |
35 | fld dword[ebx+offs_vert_pc+offs_Z] ;st0 = v.pc.Z |
36 | fmul st0,st1 |
36 | fmulp |
37 | fmul dword[eax+offs_cont_viewport+offs_vpor_scale+offs_Z] |
37 | fmul dword[eax+offs_cont_viewport+offs_vpor_scale+offs_Z] |
38 | fadd dword[eax+offs_cont_viewport+offs_vpor_trans+offs_Z] |
38 | fadd dword[eax+offs_cont_viewport+offs_vpor_trans+offs_Z] |
Line 39... | Line -... | ||
39 | fistp dword[ebx+offs_vert_zp+offs_zbup_z] ;v.zp.z = st0, st0 = st1 |
- | |
40 | - | ||
41 | ffree st0 |
- | |
42 | fincstp |
39 | fistp dword[ebx+offs_vert_zp+offs_zbup_z] ;v.zp.z = st0, st0 = st1 |
43 | 40 | ||
44 | ; color |
41 | ; color |
45 | cmp dword[eax+offs_cont_lighting_enabled],0 ;if (context.lighting_enabled) |
42 | cmp dword[eax+offs_cont_lighting_enabled],0 ;if (context.lighting_enabled) |
46 | je @f |
43 | je @f |
Line 75... | Line 72... | ||
75 | 72 | ||
76 | mov dword[point],dword(ZB_POINT_T_MAX - ZB_POINT_T_MIN) |
73 | mov dword[point],dword(ZB_POINT_T_MAX - ZB_POINT_T_MIN) |
77 | fild dword[point] |
74 | fild dword[point] |
78 | fmul dword[ebx+offs_vert_tex_coord+offs_Y] ;st0 *= v.tex_coord.Y |
75 | fmul dword[ebx+offs_vert_tex_coord+offs_Y] ;st0 *= v.tex_coord.Y |
79 | fistp dword[ebx+offs_vert_zp+offs_zbup_t] |
76 | fistp dword[ebx+offs_vert_zp+offs_zbup_t] |
80 | add dword[ebx+offs_vert_zp+offs_zbup_s],ZB_POINT_T_MIN |
77 | add dword[ebx+offs_vert_zp+offs_zbup_t],ZB_POINT_T_MIN |
81 | @@: |
78 | @@: |
82 | ret |
79 | ret |
Line 83... | Line 80... | ||
83 | endp |
80 | endp |
Line 179... | Line 176... | ||
179 | fadd dword[ebx+offs_vert_color+4] |
176 | fadd dword[ebx+offs_vert_color+4] |
180 | fstp dword[eax+offs_vert_color+4] |
177 | fstp dword[eax+offs_vert_color+4] |
Line 181... | Line 178... | ||
181 | 178 | ||
182 | fld dword[ecx+offs_vert_color+8] |
179 | fld dword[ecx+offs_vert_color+8] |
183 | fsub dword[ebx+offs_vert_color+8] |
180 | fsub dword[ebx+offs_vert_color+8] |
184 | fmul st0,st1 |
181 | fmulp |
185 | fadd dword[ebx+offs_vert_color+8] |
182 | fadd dword[ebx+offs_vert_color+8] |
186 | fstp dword[eax+offs_vert_color+8] |
- | |
187 | - | ||
188 | ffree st0 |
- | |
189 | fincstp |
183 | fstp dword[eax+offs_vert_color+8] |
190 | ret |
184 | ret |
Line 191... | Line 185... | ||
191 | endp |
185 | endp |
192 | 186 |