; Ambient light processing routine ; ; The color and alpha values are summed and clamped ; to 1.0. ; Add in ambient to running rgba. ; Clamp any results to 1.0. #pragma screenspace xvs.1.1 ;;zero out color register ; ; mov r11, ZERO ; ;;move in color if its less than one otherwize put in one ; mov r0, ONE ; min r11, r0, AMBIENT mov r11.xyz, c[AMBIENTREGISTER] ;mov r11.xyz, ZERO mov r11.w, ONE