Thanks, but it throws an error on this line:

colorarg1[0]=texture; // shadow map

"colorarg accepts only dwords and ids"