Home | History | Annotate | Download | only in main

Lines Matching defs:dist

948 						struct ureg dist )
977 if (p->state->unit[i].light_attenuated && !is_undef(dist)) {
981 emit_op1(p, OPCODE_RCP, dist, WRITEMASK_YZ, dist);
983 emit_op2(p, OPCODE_MUL, dist, WRITEMASK_XZ, dist, swizzle1(dist,Y));
984 /* 1/dist-atten */
985 emit_op2(p, OPCODE_DP3, dist, 0, attenuation, dist);
988 /* dist-atten */
989 emit_op1(p, OPCODE_RCP, dist, 0, dist);
990 /* spot-atten * dist-atten */
991 emit_op2(p, OPCODE_MUL, att, 0, dist, att);
994 /* dist-atten */
995 emit_op1(p, OPCODE_RCP, att, 0, dist);
1122 struct ureg dist = undef;
1134 dist = get_temp(p);
1140 /* Normalize VPpli. The dist value also used in
1143 emit_op2(p, OPCODE_DP3, dist, 0, VPpli, VPpli);
1144 emit_op1(p, OPCODE_RSQ, dist, 0, dist);
1145 emit_op2(p, OPCODE_MUL, VPpli, 0, VPpli, dist);
1150 att = calculate_light_attenuation(p, i, VPpli, dist);
1151 release_temp(p, dist);
1535 /* dist = |eyez| */
1537 /* p1 + dist * (p2 + dist * p3); */