Lines Matching refs:apcVec
1348 D3DXVECTOR4 apcVec[5]; in SetupMaterial() local
1349 memset(apcVec,0,sizeof(apcVec)); in SetupMaterial()
1350 apcVec[0].x = g_avLightDirs[0].x; in SetupMaterial()
1351 apcVec[0].y = g_avLightDirs[0].y; in SetupMaterial()
1352 apcVec[0].z = g_avLightDirs[0].z; in SetupMaterial()
1353 apcVec[0].w = 0.0f; in SetupMaterial()
1354 apcVec[1].x = g_avLightDirs[0].x * -1.0f; in SetupMaterial()
1355 apcVec[1].y = g_avLightDirs[0].y * -1.0f; in SetupMaterial()
1356 apcVec[1].z = g_avLightDirs[0].z * -1.0f; in SetupMaterial()
1357 apcVec[1].w = 0.0f; in SetupMaterial()
1358 D3DXVec4Normalize(&apcVec[0],&apcVec[0]); in SetupMaterial()
1359 D3DXVec4Normalize(&apcVec[1],&apcVec[1]); in SetupMaterial()
1360 piEnd->SetVectorArray("afLightDir",apcVec,5); in SetupMaterial()
1362 apcVec[0].x = ((g_avLightColors[0] >> 16) & 0xFF) / 255.0f; in SetupMaterial()
1363 apcVec[0].y = ((g_avLightColors[0] >> 8) & 0xFF) / 255.0f; in SetupMaterial()
1364 apcVec[0].z = ((g_avLightColors[0]) & 0xFF) / 255.0f; in SetupMaterial()
1365 apcVec[0].w = 1.0f; in SetupMaterial()
1369 apcVec[1].x = ((g_avLightColors[1] >> 16) & 0xFF) / 255.0f; in SetupMaterial()
1370 apcVec[1].y = ((g_avLightColors[1] >> 8) & 0xFF) / 255.0f; in SetupMaterial()
1371 apcVec[1].z = ((g_avLightColors[1]) & 0xFF) / 255.0f; in SetupMaterial()
1372 apcVec[1].w = 0.0f; in SetupMaterial()
1375 apcVec[1].x = 0.0f; in SetupMaterial()
1376 apcVec[1].y = 0.0f; in SetupMaterial()
1377 apcVec[1].z = 0.0f; in SetupMaterial()
1378 apcVec[1].w = 0.0f; in SetupMaterial()
1381 apcVec[0] *= g_fLightIntensity; in SetupMaterial()
1382 apcVec[1] *= g_fLightIntensity; in SetupMaterial()
1383 piEnd->SetVectorArray("afLightColor",apcVec,5); in SetupMaterial()
1385 apcVec[0].x = ((g_avLightColors[2] >> 16) & 0xFF) / 255.0f; in SetupMaterial()
1386 apcVec[0].y = ((g_avLightColors[2] >> 8) & 0xFF) / 255.0f; in SetupMaterial()
1387 apcVec[0].z = ((g_avLightColors[2]) & 0xFF) / 255.0f; in SetupMaterial()
1388 apcVec[0].w = 1.0f; in SetupMaterial()
1390 apcVec[1].x = ((g_avLightColors[2] >> 16) & 0xFF) / 255.0f; in SetupMaterial()
1391 apcVec[1].y = ((g_avLightColors[2] >> 8) & 0xFF) / 255.0f; in SetupMaterial()
1392 apcVec[1].z = ((g_avLightColors[2]) & 0xFF) / 255.0f; in SetupMaterial()
1393 apcVec[1].w = 0.0f; in SetupMaterial()
1398 piEnd->SetVectorArray("afLightColorAmbient",apcVec,5); in SetupMaterial()
1401 apcVec[0].x = vPos.x; in SetupMaterial()
1402 apcVec[0].y = vPos.y; in SetupMaterial()
1403 apcVec[0].z = vPos.z; in SetupMaterial()
1404 piEnd->SetVector( "vCameraPos",&apcVec[0]); in SetupMaterial()