; Perform directional lighting calculations #pragma screenspace xvs.1.1 ; write the "ramp" function for directional lights (always one) mov r11, c[a0.x + LIGHT_COLOR].xyz mov r3, c[a0.x + LIGHT_DIRECTION] ; Set a0.x to next light (if any) mov r5.x, c[a0.x + LIGHT_SIZE].w mov a0.x, r5.x