Guest User

Untitled

a guest
Jun 3rd, 2015
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.72 KB | None | 0 0
  1. .texcoord[1].x, R1, c[13];
  2. DP4 result.texcoord[2].z, R1, c[19];
  3. DP4 result.texcoord[2].y, R1, c[18];
  4. DP4 result.texcoord[2].x, R1, c[17];
  5. DP4 result.texcoord[3].z, R1, c[23];
  6. DP4 result.texcoord[3].y, R1, c[22];
  7. DP4 result.texcoord[3].x, R1, c[21];
  8. MOV result.texcoord[4], R0;
  9. DP4 result.position.w, vertex.position, c[8];
  10. DP4 result.position.z, vertex.position, c[7];
  11. DP4 result.position.y, vertex.position, c[6];
  12. DP4 result.position.x, vertex.position, c[5];
  13. END
  14. # 24 instructions, 2 R-regs
  15. "
  16. }
  17. }
  18. Program "fp" {
  19. SubProgram "opengl " {
  20. Keywords { "SHADOWS_NONATIVE" }
  21. Vector 0 [_ProjectionParams]
  22. Vector 1 [_LightSplitsNear]
  23. Vector 2 [_LightSplitsFar]
  24. Vector 3 [_LightShadowData]
  25. SetTexture 0 [_ShadowMapTexture] 2D 0
  26. "!!ARBfp1.0
  27. PARAM c[5] = { program.local[0..3],
  28. { 1, 255, 0.0039215689 } };
  29. TEMP R0;
  30. TEMP R1;
  31. SLT R1, fragment.texcoord[4].w, c[2];
  32. SGE R0, fragment.texcoord[4].w, c[1];
  33. MUL R0, R0, R1;
  34. MUL R1.xyz, R0.y, fragment.texcoord[1];
  35. MAD R1.xyz, R0.x, fragment.texcoord[0], R1;
  36. MAD R0.xyz, R0.z, fragment.texcoord[2], R1;
  37. MAD R0.xyz, fragment.texcoord[3], R0.w, R0;
  38. MAD_SAT R1.y, fragment.texcoord[4].w, c[3].z, c[3].w;
  39. MOV result.color.y, c[4].x;
  40. TEX R0.x, R0, texture[0], 2D;
  41. ADD R0.z, R0.x, -R0;
  42. MOV R0.x, c[4];
  43. CMP R1.x, R0.z, c[3], R0;
  44. MUL R0.y, -fragment.texcoord[4].w, c[0].w;
  45. ADD R0.y, R0, c[4].x;
  46. MUL R0.xy, R0.y, c[4];
  47. FRC R0.zw, R0.xyxy;
  48. MOV R0.y, R0.w;
  49. MAD R0.x, -R0.w, c[4].z, R0.z;
  50. ADD_SAT result.color.x, R1, R1.y;
  51. MOV result.color.zw, R0.xyxy;
  52. END
  53. # 21 instructions, 2 R-regs
  54. "
  55. }
  56. SubProgram "opengl " {
  57. Keywords { "SHADOWS_NATIVE" }
  58. Vector 0 [_ProjectionParams]
  59. Vector 1 [_LightSplitsNear]
  60. Vector 2 [_LightSplitsFar]
  61. Vector 3 [_LightShadowData]
  62. SetTexture 0 [_ShadowMapTexture] 2D 0
  63. "!!ARBfp1.0
  64. OPTION ARB_fragment_program_shadow;
  65. PARAM c[5] = { program.local[0..3],
  66. { 1, 255, 0.0039215689 } };
  67. TEMP R0;
  68. TEMP R1;
  69. SLT R1, fragment.texcoord[4].w, c[2];
  70. SGE R0, fragment.texcoord[4].w, c[1];
  71. MUL R0, R0, R1;
  72. MUL R1.xyz, R0.y, fragment.texcoord[1];
  73. MAD R1.xyz, R0.x, fragment.texcoord[0], R1;
  74. MAD R0.xyz, R0.z, fragment.texcoord[2], R1;
  75. MAD R0.xyz, fragment.texcoord[3], R0.w, R0;
  76. MAD_SAT R1.y, fragment.texcoord[4].w, c[3].z, c[3].w;
  77. MOV result.color.y, c[4].x;
  78. TEX R0.x, R0, texture[0], SHADOW2D;
  79. MOV R0.y, c[4].x;
  80. ADD R0.w, R0.y, -c[3].x;
  81. MAD R1.x, R0, R0.w, c[3];
  82. MUL R0.z, -fragment.texcoord[4].w, c[0].w;
  83. ADD R0.y, R0.z, c[4].x;
  84. MUL R0.xy, R0.y, c[4];
  85. FRC R0.zw, R0.xyxy;
  86. MOV R0.y, R0.w;
  87. MAD R0.x, -R0.w, c[4].z, R0.z;
  88. ADD_SAT result.color.x, R1, R1.y;
  89. MOV result.color.zw, R0.xyxy;
  90. END
  91. # 21 instructions, 2 R-regs
  92. "
  93. }
  94. SubProgram "opengl " {
  95. Keywords { "SHADOWS_SPLIT_SPHERES" "SHADOWS_NONATIVE" }
  96. Vector 0 [_ProjectionParams]
  97. Vector 1 [unity_ShadowSplitSpheres0]
  98. Vector 2 [unity_ShadowSplitSpheres1]
  99. Vector 3 [unity_ShadowSplitSpheres2]
  100. Vector 4 [unity_ShadowSplitSpheres3]
  101. Vector 5 [unity_ShadowSplitSqRadii]
  102. Vector 6 [_LightShadowData]
  103. Vector 7 [unity_ShadowFadeCenterAndType]
  104. SetTexture 0 [_ShadowMapTexture] 2D 0
  105. "!!ARBfp1.0
  106. PARAM c[9] = { program.local[0..7],
  107. { 1, 255, 0.0039215689 } };
  108. TEMP R0;
  109. TEMP R1;
  110. TEMP R2;
  111. ADD R0.xyz, fragment.texcoord[4], -c[1];
  112. ADD R2.xyz, fragment.texcoord[4], -c[4];
  113. DP3 R0.x, R0, R0;
  114. ADD R1.xyz, fragment.texcoord[4], -c[2];
  115. DP3 R0.y, R1, R1;
  116. ADD R1.xyz, fragment.texcoord[4], -c[3];
  117. DP3 R0.w, R2, R2;
  118. DP3 R0.z, R1, R1;
  119. SLT R2, R0, c[5];
  120. ADD_SAT R0.xyz, R2.yzww, -R2;
  121. MUL R1.xyz, R0.x, fragment.texcoord[1];
  122. MAD R1.xyz, R2.x, fragment.texcoord[0], R1;
  123. MAD R1.xyz, R0.y, fragment.texcoord[2], R1;
  124. MAD R0.xyz, fragment.texcoord[3], R0.z, R1;
  125. ADD R1.xyz, -fragment.texcoord[4], c[7];
  126. MOV result.color.y, c[8].x;
  127. TEX R0.x, R0, texture[0], 2D;
  128. ADD R0.y, R0.x, -R0.z;
  129. DP3 R0.z, R1, R1;
  130. RSQ R0.z, R0.z;
  131. MOV R0.x, c[8];
  132. CMP R0.x, R0.y, c[6], R0;
  133. MUL R0.y, -fragment.texcoord[4].w, c[0].w;
  134. ADD R0.y, R0, c[8].x;
  135. RCP R1.x, R0.z;
  136. MUL R0.zw, R0.y, c[8].xyxy;
  137. MAD_SAT R0.y, R1.x, c[6].z, c[6].w;
  138. FRC R0.zw, R0;
  139. ADD_SAT result.color.x, R0, R0.y;
  140. MOV R0.y, R0.w;
  141. MAD R0.x, -R0.w, c[8].z, R0.z;
  142. MOV result.color.zw, R0.xyxy;
  143. END
  144. # 32 instructions, 3 R-regs
  145. "
  146. }
  147. SubProgram "opengl " {
  148. Keywords { "SHADOWS_SPLIT_SPHERES" "SHADOWS_NATIVE" }
  149. Vector 0 [_ProjectionParams]
  150. Vector 1 [unity_ShadowSplitSpheres0]
  151. Vector 2 [unity_ShadowSplitSpheres1]
  152. Vector 3 [unity_ShadowSplitSpheres2]
  153. Vector 4 [unity_ShadowSplitSpheres3]
  154. Vector 5 [unity_ShadowSplitSqRadii]
  155. Vector 6 [_LightShadowData]
  156. Vector 7 [unity_ShadowFadeCenterAndType]
  157. SetTexture 0 [_ShadowMapTexture] 2D 0
  158. "!!ARBfp1.0
  159. OPTION ARB_fragment_program_shadow;
  160. PARAM c[9] = { program.local[0..7],
  161. { 1, 255, 0.0039215689 } };
  162. TEMP R0;
  163. TEMP R1;
  164. TEMP R2;
  165. ADD R0.xyz, fragment.texcoord[4], -c[1];
  166. ADD R2.xyz, fragment.texcoord[4], -c[4];
  167. DP3 R0.x, R0, R0;
  168. ADD R1.xyz, fragment.texcoord[4], -c[2];
  169. DP3 R0.y, R1, R1;
  170. ADD R1.xyz, fragment.texcoord[4], -c[3];
  171. DP3 R0.w, R2, R2;
  172. DP3 R0.z, R1, R1;
  173. SLT R2, R0, c[5];
  174. ADD_SAT R0.xyz, R2.yzww, -R2;
  175. MUL R1.xyz, R0.x, fragment.texcoord[1];
  176. MAD R1.xyz, R2.x, fragment.texcoord[0], R1;
  177. MAD R1.xyz, R0.y, fragment.texcoord[2], R1;
  178. MAD R0.xyz, fragment.texcoord[3], R0.z, R1;
  179. ADD R1.xyz, -fragment.texcoord[4], c[7];
  180. MOV result.color.y, c[8].x;
  181. TEX R0.x, R0, texture[0], SHADOW2D;
  182. DP3 R0.z, R1, R1;
  183. RSQ R0.z, R0.z;
  184. MOV R0.y, c[8].x;
  185. ADD R0.y, R0, -c[6].x;
  186. MAD R0.x, R0, R0.y, c[6];
  187. MUL R0.y, -fragment.texcoord[4].w, c[0].w;
  188. ADD R0.y, R0, c[8].x;
  189. RCP R1.x, R0.z;
  190. MUL R0.zw, R0.y, c[8].xyxy;
  191. MAD_SAT R0.y, R1.x, c[6].z, c[6].w;
  192. FRC R0.zw, R0;
  193. ADD_SAT result.color.x, R0, R0.y;
  194. MOV R0.y, R0.w;
  195. MAD R0.x, -R0.w, c[8].z, R0.z;
  196. MOV result.color.zw, R0.xyxy;
  197. END
  198. # 32 instructions, 3 R-regs
  199. "
  200. }
  201. }
  202. }
  203. }
  204. }Normal-Diffuse��Shader "Diffuse" {
  205. Properties {
  206. _Color ("Main Color", Color) = (1,1,1,1)
  207. _MainTex ("Base (RGB)", 2D) = "white" {}
  208. }
  209. SubShader {
  210. LOD 200
  211. Tags { "RenderType"="Opaque" }
  212. Pass {
  213. Name "FORWARD"
  214. Tags { "LIGHTMODE"="ForwardBase" "SHADOWSUPPORT"="true" "RenderType"="Opaque" }
  215. Program "vp" {
  216. SubProgram "opengl " {
  217. Keywords { "DIRECTIONAL" "SHADOWS_OFF" "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" }
  218. Bind "vertex" Vertex
  219. Bind "normal" Normal
  220. Bind "texcoord" TexCoord0
  221. Matrix 5 [_Object2World]
  222. Vector 9 [unity_SHAr]
  223. Vector 10 [unity_SHAg]
  224. Vector 11 [unity_SHAb]
  225. Vector 12 [unity_SHBr]
  226. Vector 13 [unity_SHBg]
  227. Vector 14 [unity_SHBb]
  228. Vector 15 [unity_SHC]
  229. Vector 16 [unity_Scale]
  230. Vector 17 [_MainTex_ST]
  231. "!!ARBvp1.0
  232. PARAM c[18] = { { 1 },
  233. state.matrix.mvp,
  234. program.local[5..17] };
  235. TEMP R0;
  236. TEMP R1;
  237. TEMP R2;
  238. TEMP R3;
  239. MUL R1.xyz, vertex.normal, c[16].w;
  240. DP3 R3.w, R1, c[6];
  241. DP3 R2.w, R1, c[7];
  242. DP3 R0.x, R1, c[5];
  243. MOV R0.y, R3.w;
  244. MOV R0.z, R2.w;
  245. MUL R1, R0.xyzz, R0.yzzx;
  246. MOV R0.w, c[0].x;
  247. DP4 R2.z, R0, c[11];
  248. DP4 R2.y, R0, c[10];
  249. DP4 R2.x, R0, c[9];
  250. MUL R0.y, R3.w, R3.w;
  251. DP4 R3.z, R1, c[14];
  252. DP4 R3.y, R1, c[13];
  253. DP4 R3.x, R1, c[12];
  254. MAD R0.y, R0.x, R0.x, -R0;
  255. MUL R1.xyz, R0.y, c[15];
  256. ADD R2.xyz, R2, R3;
  257. ADD result.texcoord[2].xyz, R2, R1;
  258. MOV result.texcoord[1].z, R2.w;
  259. MOV result.texcoord[1].y, R3.w;
  260. MOV result.texcoord[1].x, R0;
  261. MAD result.texcoord[0].xy, vertex.texcoord[0], c[17], c[17].zwzw;
  262. DP4 result.position.w, vertex.position, c[4];
  263. DP4 result.position.z, vertex.position, c[3];
  264. DP4 result.position.y, vertex.position, c[2];
  265. DP4 result.position.x, vertex.position, c[1];
  266. END
  267. # 27 instructions, 4 R-regs
  268. "
  269. }
  270. SubProgram "opengl " {
  271. Keywords { "DIRECTIONAL" "SHADOWS_OFF" "LIGHTMAP_ON" "DIRLIGHTMAP_OFF" }
  272. Bind "vertex" Vertex
  273. Bind "texcoord" TexCoord0
  274. Bind "texcoord1" TexCoord1
  275. Vector 9 [unity_LightmapST]
  276. Vector 10 [_MainTex_ST]
  277. "!!ARBvp1.0
  278. PARAM c[11] = { program.local[0],
  279. state.matrix.mvp,
  280. program.local[5..10] };
  281. MAD result.texcoord[0].xy, vertex.texcoord[0], c[10], c[10].zwzw;
  282. MAD result.texcoord[1].xy, vertex.texcoord[1], c[9], c[9].zwzw;
  283. DP4 result.position.w, vertex.position, c[4];
  284. DP4 result.position.z, vertex.position, c[3];
  285. DP4 result.position.y, vertex.position, c[2];
  286. DP4 result.position.x, vertex.position, c[1];
  287. END
  288. # 6 instructions, 0 R-regs
  289. "
  290. }
  291. SubProgram "opengl " {
  292. Keywords { "DIRECTIONAL" "SHADOWS_OFF" "LIGHTMAP_ON" "DIRLIGHTMAP_ON" }
  293. Bind "vertex" Vertex
  294. Bind "texcoord" TexCoord0
  295. Bind "texcoord1" TexCoord1
  296. Vector 9 [unity_LightmapST]
  297. Vector 10 [_MainTex_ST]
  298. "!!ARBvp1.0
  299. PARAM c[11] = { program.local[0],
  300. state.matrix.mvp,
  301. program.local[5..10] };
  302. MAD result.texcoord[0].xy, vertex.texcoord[0], c[10], c[10].zwzw;
  303. MAD result.texcoord[1].xy, vertex.texcoord[1], c[9], c[9].zwzw;
  304. DP4 result.position.w, vertex.position, c[4];
  305. DP4 result.position.z, vertex.position, c[3];
  306. DP4 result.position.y, vertex.position, c[2];
  307. DP4 result.position.x, vertex.position, c[1];
  308. END
  309. # 6 instructions, 0 R-regs
  310. "
  311. }
  312. SubProgram "opengl " {
  313. Keywords { "DIRECTIONAL" "SHADOWS_SCREEN" "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" }
  314. Bind "vertex" Vertex
  315. Bind "normal" Normal
  316. Bind "texcoord" TexCoord0
  317. Matrix 5 [_Object2World]
  318. Vector 9 [_ProjectionParams]
  319. Vector 10 [unity_SHAr]
  320. Vector 11 [unity_SHAg]
  321. Vector 12 [unity_SHAb]
  322. Vector 13 [unity_SHBr]
  323. Vector 14 [unity_SHBg]
  324. Vector 15 [unity_SHBb]
  325. Vector 16 [unity_SHC]
  326. Vector 17 [unity_Scale]
  327. Vector 18 [_MainTex_ST]
  328. "!!ARBvp1.0
  329. PARAM c[19] = { { 1, 0.5 },
  330. state.matrix.mvp,
  331. program.local[5..18] };
  332. TEMP R0;
  333. TEMP R1;
  334. TEMP R2;
  335. TEMP R3;
  336. MUL R0.xyz, vertex.normal, c[17].w;
  337. DP3 R3.w, R0, c[6];
  338. DP3 R2.w, R0, c[7];
  339. DP3 R1.w, R0, c[5];
  340. MOV R1.x, R3.w;
  341. MOV R1.y, R2.w;
  342. MOV R1.z, c[0].x;
  343. MUL R0, R1.wxyy, R1.xyyw;
  344. DP4 R2.z, R1.wxyz, c[12];
  345. DP4 R2.y, R1.wxyz, c[11];
  346. DP4 R2.x, R1.wxyz, c[10];
  347. DP4 R1.z, R0, c[15];
  348. DP4 R1.y, R0, c[14];
  349. DP4 R1.x, R0, c[13];
  350. MUL R3.x, R3.w, R3.w;
  351. MAD R0.x, R1.w, R1.w, -R3;
  352. ADD R3.xyz, R2, R1;
  353. MUL R2.xyz, R0.x, c[16];
  354. DP4 R0.w, vertex.position, c[4];
  355. DP4 R0.z, vertex.position, c[3];
  356. DP4 R0.x, vertex.position, c[1];
  357. DP4 R0.y, vertex.position, c[2];
  358. MUL R1.xyz, R0.xyww, c[0].y;
  359. MUL R1.y, R1, c[9].x;
  360. ADD result.texcoord[2].xyz, R3, R2;
  361. ADD result.texcoord[3].xy, R1, R1.z;
  362. MOV result.position, R0;
  363. MOV result.texcoord[3].zw, R0;
  364. MOV result.texcoord[1].z, R2.w;
  365. MOV result.texcoord[1].y, R3.w;
  366. MOV result.texcoord[1].x, R1.w;
  367. MAD result.texcoord[0].xy, vertex.texcoord[0], c[18], c[18].zwzw;
  368. END
  369. # 32 instructions, 4 R-regs
  370. "
  371. }
  372. SubProgram "opengl " {
  373. Keywords { "DIRECTIONAL" "SHADOWS_SCREEN" "LIGHTMAP_ON" "DIRLIGHTMAP_OFF" }
  374. Bind "vertex" Vertex
  375. Bind "texcoord" TexCoord0
  376. Bind "texcoord1" TexCoord1
  377. Vector 9 [_ProjectionParams]
  378. Vector 10 [unity_LightmapST]
  379. Vector 11 [_MainTex_ST]
  380. "!!ARBvp1.0
  381. PARAM c[12] = { { 0.5 },
  382. state.matrix.mvp,
  383. program.local[5..11] };
  384. TEMP R0;
  385. TEMP R1;
  386. DP4 R0.w, vertex.position, c[4];
  387. DP4 R0.z, vertex.position, c[3];
  388. DP4 R0.x, vertex.position, c[1];
  389. DP4 R0.y, vertex.position, c[2];
  390. MUL R1.xyz, R0.xyww, c[0].x;
  391. MUL R1.y, R1, c[9].x;
  392. ADD result.texcoord[2].xy, R1, R1.z;
  393. MOV result.position, R0;
  394. MOV result.texcoord[2].zw, R0;
  395. MAD result.texcoord[0].xy, vertex.texcoord[0], c[11], c[11].zwzw;
  396. MAD result.texcoord[1].xy, vertex.texcoord[1], c[10], c[10].zwzw;
  397. END
  398. # 11 instructions, 2 R-regs
  399. "
  400. }
  401. SubProgram "opengl " {
  402. Keywords { "DIRECTIONAL" "SHADOWS_SCREEN" "LIGHTMAP_ON" "DIRLIGHTMAP_ON" }
  403. Bind "vertex" Vertex
  404. Bind "texcoord" TexCoord0
  405. Bind "texcoord1" TexCoord1
  406. Vector 9 [_ProjectionParams]
  407. Vector 10 [unity_LightmapST]
  408. Vector 11 [_MainTex_ST]
  409. "!!ARBvp1.0
  410. PARAM c[12] = { { 0.5 },
  411. state.matrix.mvp,
  412. program.local[5..11] };
  413. TEMP R0;
  414. TEMP R1;
  415. DP4 R0.w, vertex.position, c[4];
  416. DP4 R0.z, vertex.position, c[3];
  417. DP4 R0.x, vertex.position, c[1];
  418. DP4 R0.y, vertex.position, c[2];
  419. MUL R1.xyz, R0.xyww, c[0].x;
  420. MUL R1.y, R1, c[9].x;
  421. ADD result.texcoord[2].xy, R1, R1.z;
  422. MOV result.position, R0;
  423. MOV result.texcoord[2].zw, R0;
  424. MAD result.texcoord[0].xy, vertex.texcoord[0], c[11], c[11].zwzw;
  425. MAD result.texcoord[1].xy, vertex.texcoord[1], c[10], c[10].zwzw;
  426. END
  427. # 11 instructions, 2 R-regs
  428. "
  429. }
  430. SubProgram "opengl " {
  431. Keywords { "DIRECTIONAL" "SHADOWS_OFF" "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "VERTEXLIGHT_ON" }
  432. Bind "vertex" Vertex
  433. Bind "normal" Normal
  434. Bind "texcoord" TexCoord0
  435. Matrix 5 [_Object2World]
  436. Vector 9 [unity_4LightPosX0]
  437. Vector 10 [unity_4LightPosY0]
  438. Vector 11 [unity_4LightPosZ0]
  439. Vector 12 [unity_4LightAtten0]
  440. Vector 13 [unity_LightColor0]
  441. Vector 14 [unity_LightColor1]
  442. Vector 15 [unity_LightColor2]
  443. Vector 16 [unity_LightColor3]
  444. Vector 17 [unity_SHAr]
  445. Vector 18 [unity_SHAg]
  446. Vector 19 [unity_SHAb]
  447. Vector 20 [unity_SHBr]
  448. Vector 21 [unity_SHBg]
  449. Vector 22 [unity_SHBb]
  450. Vector 23 [unity_SHC]
  451. Vector 24 [unity_Scale]
  452. Vector 25 [_MainTex_ST]
  453. "!!ARBvp1.0
  454. PARAM c[26] = { { 1, 0 },
  455. state.matrix.mvp,
  456. program.local[5..25] };
  457. TEMP R0;
  458. TEMP R1;
  459. TEMP R2;
  460. TEMP R3;
  461. TEMP R4;
  462. MUL R3.xyz, vertex.normal, c[24].w;
  463. DP3 R4.x, R3, c[5];
  464. DP3 R3.w, R3, c[6];
  465. DP3 R3.x, R3, c[7];
  466. DP4 R0.x, vertex.position, c[6];
  467. ADD R1, -R0.x, c[10];
  468. MUL R2, R3.w, R1;
  469. DP4 R0.x, vertex.position, c[5];
  470. ADD R0, -R0.x, c[9];
  471. MUL R1, R1, R1;
  472. MOV R4.z, R3.x;
  473. MOV R4.w, c[0].x;
  474. MAD R2, R4.x, R0, R2;
  475. DP4 R4.y, vertex.position, c[7];
  476. MAD R1, R0, R0, R1;
  477. ADD R0, -R4.y, c[11];
  478. MAD R1, R0, R0, R1;
  479. MAD R0, R3.x, R0, R2;
  480. MUL R2, R1, c[12];
  481. MOV R4.y, R3.w;
  482. RSQ R1.x, R1.x;
  483. RSQ R1.y, R1.y;
  484. RSQ R1.w, R1.w;
  485. RSQ R1.z, R1.z;
  486. MUL R0, R0, R1;
  487. ADD R1, R2, c[0].x;
  488. DP4 R2.z, R4, c[19];
  489. DP4 R2.y, R4, c[18];
  490. DP4 R2.x, R4, c[17];
  491. RCP R1.x, R1.x;
  492. RCP R1.y, R1.y;
  493. RCP R1.w, R1.w;
  494. RCP R1.z, R1.z;
  495. MAX R0, R0, c[0].y;
  496. MUL R0, R0, R1;
  497. MUL R1.xyz, R0.y, c[14];
  498. MAD R1.xyz, R0.x, c[13], R1;
  499. MAD R0.xyz, R0.z, c[15], R1;
  500. MAD R1.xyz, R0.w, c[16], R0;
  501. MUL R0, R4.xyzz, R4.yzzx;
  502. MUL R1.w, R3, R3;
  503. DP4 R4.w, R0, c[22];
  504. DP4 R4.z, R0, c[21];
  505. DP4 R4.y, R0, c[20];
  506. MAD R1.w, R4.x, R4.x, -R1;
  507. MUL R0.xyz, R1.w, c[23];
  508. ADD R2.xyz, R2, R4.yzww;
  509. ADD R0.xyz, R2, R0;
  510. ADD result.texcoord[2].xyz, R0, R1;
  511. MOV result.texcoord[1].z, R3.x;
  512. MOV result.texcoord[1].y, R3.w;
  513. MOV result.texcoord[1].x, R4;
  514. MAD result.texcoord[0].xy, vertex.texcoord[0], c[25], c[25].zwzw;
  515. DP4 result.position.w, vertex.position, c[4];
  516. DP4 result.position.z, vertex.position, c[3];
  517. DP4 result.position.y, vertex.position, c[2];
  518. DP4 result.position.x, vertex.position, c[1];
  519. END
  520. # 57 instructions, 5 R-regs
  521. "
  522. }
  523. SubProgram "opengl " {
  524. Keywords { "DIRECTIONAL" "SHADOWS_SCREEN" "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "VERTEXLIGHT_ON" }
  525. Bind "vertex" Vertex
  526. Bind "normal" Normal
  527. Bind "texcoord" TexCoord0
  528. Matrix 5 [_Object2World]
  529. Vector 9 [_ProjectionParams]
  530. Vector 10 [unity_4LightPosX0]
  531. Vector 11 [unity_4LightPosY0]
  532. Vector 12 [unity_4LightPosZ0]
  533. Vector 13 [unity_4LightAtten0]
  534. Vector 14 [unity_LightColor0]
  535. Vector 15 [unity_LightColor1]
  536. Vector 16 [unity_LightColor2]
  537. Vector 17 [unity_LightColor3]
  538. Vector 18 [unity_SHAr]
  539. Vector 19 [unity_SHAg]
  540. Vector 20 [unity_SHAb]
  541. Vector 21 [unity_SHBr]
  542. Vector 22 [unity_SHBg]
  543. Vector 23 [unity_SHBb]
  544. Vector 24 [unity_SHC]
  545. Vector 25 [unity_Scale]
  546. Vector 26 [_MainTex_ST]
  547. "!!ARBvp1.0
  548. PARAM c[27] = { { 1, 0, 0.5 },
  549. state.matrix.mvp,
  550. program.local[5..26] };
  551. TEMP R0;
  552. TEMP R1;
  553. TEMP R2;
  554. TEMP R3;
  555. TEMP R4;
  556. MUL R3.xyz, vertex.normal, c[25].w;
  557. DP3 R4.x, R3, c[5];
  558. DP3 R3.w, R3, c[6];
  559. DP3 R3.x, R3, c[7];
  560. DP4 R0.x, vertex.position, c[6];
  561. ADD R1, -R0.x, c[11];
  562. MUL R2, R3.w, R1;
  563. DP4 R0.x, vertex.position, c[5];
  564. ADD R0, -R0.x, c[10];
  565. MUL R1, R1, R1;
  566. MOV R4.z, R3.x;
  567. MOV R4.w, c[0].x;
  568. MAD R2, R4.x, R0, R2;
  569. DP4 R4.y, vertex.position, c[7];
  570. MAD R1, R0, R0, R1;
  571. ADD R0, -R4.y, c[12];
  572. MAD R1, R0, R0, R1;
  573. MAD R0, R3.x, R0, R2;
  574. MUL R2, R1, c[13];
  575. MOV R4.y, R3.w;
  576. RSQ R1.x, R1.x;
  577. RSQ R1.y, R1.y;
  578. RSQ R1.w, R1.w;
  579. RSQ R1.z, R1.z;
  580. MUL R0, R0, R1;
  581. ADD R1, R2, c[0].x;
  582. DP4 R2.z, R4, c[20];
  583. DP4 R2.y, R4, c[19];
  584. DP4 R2.x, R4, c[18];
  585. RCP R1.x, R1.x;
  586. RCP R1.y, R1.y;
  587. RCP R1.w, R1.w;
  588. RCP R1.z, R1.z;
  589. MAX R0, R0, c[0].y;
  590. MUL R0, R0, R1;
  591. MUL R1.xyz, R0.y, c[15];
  592. MAD R1.xyz, R0.x, c[14], R1;
  593. MAD R0.xyz, R0.z, c[16], R1;
  594. MAD R1.xyz, R0.w, c[17], R0;
  595. MUL R0, R4.xyzz, R4.yzzx;
  596. MUL R1.w, R3, R3;
  597. DP4 R4.w, R0, c[23];
  598. DP4 R4.z, R0, c[22];
  599. DP4 R4.y, R0, c[21];
  600. MAD R1.w, R4.x, R4.x, -R1;
  601. MUL R0.xyz, R1.w, c[24];
  602. ADD R2.xyz, R2, R4.yzww;
  603. ADD R4.yzw, R2.xxyz, R0.xxyz;
  604. DP4 R0.w, vertex.position, c[4];
  605. DP4 R0.z, vertex.position, c[3];
  606. DP4 R0.x, vertex.position, c[1];
  607. DP4 R0.y, vertex.position, c[2];
  608. MUL R2.xyz, R0.xyww, c[0].z;
  609. ADD result.texcoord[2].xyz, R4.yzww, R1;
  610. MOV R1.x, R2;
  611. MUL R1.y, R2, c[9].x;
  612. ADD result.texcoord[3].xy, R1, R2.z;
  613. MOV result.position, R0;
  614. MOV result.texcoord[3].zw, R0;
  615. MOV result.texcoord[1].z, R3.x;
  616. MOV result.texcoord[1].y, R3.w;
  617. MOV result.texcoord[1].x, R4;
  618. MAD result.texcoord[0].xy, vertex.texcoord[0], c[26], c[26].zwzw;
  619. END
  620. # 63 instructions, 5 R-regs
  621. "
  622. }
  623. }
  624. Program "fp" {
  625. SubProgram "opengl " {
  626. Keywords { "DIRECTIONAL" "SHADOWS_OFF" "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" }
  627. Vector 0 [_WorldSpaceLightPos0]
  628. Vector 1 [_LightColor0]
  629. Vector 2 [_Color]
  630. SetTexture 0 [_MainTex] 2D 0
  631. "!!ARBfp1.0
  632. PARAM c[4] = { program.local[0..2],
  633. { 0, 2 } };
  634. TEMP R0;
  635. TEMP R1;
  636. TEX R0, fragment.texcoord[0], texture[0], 2D;
  637. MUL R0, R0, c[2];
  638. MUL R1.xyz, R0, fragment.texcoord[2];
  639. DP3 R1.w, fragment.texcoord[1], c[0];
  640. MUL R0.xyz, R0, c[1];
  641. MAX R1.w, R1, c[3].x;
  642. MUL R0.xyz, R1.w, R0;
  643. MAD result.color.xyz, R0, c[3].y, R1;
  644. MOV result.color.w, R0;
  645. END
  646. # 9 instructions, 2 R-regs
  647. "
  648. }
  649. SubProgram "opengl " {
  650. Keywords { "DIRECTIONAL" "SHADOWS_OFF" "LIGHTMAP_ON" "DIRLIGHTMAP_OFF" }
  651. Vector 0 [_Color]
  652. SetTexture 0 [_MainTex] 2D 0
  653. SetTexture 1 [unity_Lightmap] 2D 1
  654. "!!ARBfp1.0
  655. PARAM c[2] = { program.local[0],
  656. { 8 } };
  657. TEMP R0;
  658. TEMP R1;
  659. TEX R1, fragment.texcoord[1], texture[1], 2D;
  660. TEX R0, fragment.texcoord[0], texture[0], 2D;
  661. MUL R0, R0, c[0];
  662. MUL R1.xyz, R1.w, R1;
  663. MUL R0.xyz, R0, R1;
  664. MUL result.color.xyz, R0, c[1].x;
  665. MOV result.color.w, R0;
  666. END
  667. # 7 instructions, 2 R-regs
  668. "
  669. }
  670. SubProgram "opengl " {
  671. Keywords { "DIRECTIONAL" "SHADOWS_OFF" "LIGHTMAP_ON" "DIRLIGHTMAP_ON" }
  672. Vector 0 [_Color]
  673. SetTexture 0 [_MainTex] 2D 0
  674. SetTexture 1 [unity_Lightmap] 2D 1
  675. "!!ARBfp1.0
  676. PARAM c[2] = { program.local[0],
  677. { 8 } };
  678. TEMP R0;
  679. TEMP R1;
  680. TEX R1, fragment.texcoord[1], texture[1], 2D;
  681. TEX R0, fragment.texcoord[0], texture[0], 2D;
  682. MUL R0, R0, c[0];
  683. MUL R1.xyz, R1.w, R1;
  684. MUL R0.xyz, R0, R1;
  685. MUL result.color.xyz, R0, c[1].x;
  686. MOV result.color.w, R0;
  687. END
  688. # 7 instructions, 2 R-regs
  689. "
  690. }
  691. SubProgram "opengl " {
  692. Keywords { "DIRECTIONAL" "SHADOWS_SCREEN" "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" }
  693. Vector 0 [_WorldSpaceLightPos0]
  694. Vector 1 [_LightColor0]
  695. Vector 2 [_Color]
  696. SetTexture 0 [_MainTex] 2D 0
  697. SetTexture 1 [_ShadowMapTexture] 2D 1
  698. "!!ARBfp1.0
  699. PARAM c[4] = { program.local[0..2],
  700. { 0, 2 } };
  701. TEMP R0;
  702. TEMP R1;
  703. TEMP R2;
  704. TEX R0, fragment.texcoord[0], texture[0], 2D;
  705. TXP R2.x, fragment.texcoord[3], texture[1], 2D;
  706. MUL R0, R0, c[2];
  707. MUL R1.xyz, R0, fragment.texcoord[2];
  708. DP3 R1.w, fragment.texcoord[1], c[0];
  709. MAX R1.w, R1, c[3].x;
  710. MUL R0.xyz, R0, c[1];
  711. MUL R1.w, R1, R2.x;
  712. MUL R0.xyz, R1.w, R0;
  713. MAD result.color.xyz, R0, c[3].y, R1;
  714. MOV result.color.w, R0;
  715. END
  716. # 11 instructions, 3 R-regs
  717. "
  718. }
  719. SubProgram "opengl " {
  720. Keywords { "DIRECTIONAL" "SHADOWS_SCREEN" "LIGHTMAP_ON" "DIRLIGHTMAP_OFF" }
  721. Vector 0 [_Color]
  722. SetTexture 0 [_MainTex] 2D 0
  723. SetTexture 1 [_ShadowMapTexture] 2D 1
  724. SetTexture 2 [unity_Lightmap] 2D 2
  725. "!!ARBfp1.0
  726. PARAM c[2] = { program.local[0],
  727. { 8, 2 } };
  728. TEMP R0;
  729. TEMP R1;
  730. TEMP R2;
  731. TEMP R3;
  732. TEX R2, fragment.texcoord[1], texture[2], 2D;
  733. TEX R0, fragment.texcoord[0], texture[0], 2D;
  734. TXP R3.x, fragment.texcoord[2], texture[1], 2D;
  735. MUL R1.xyz, R2.w, R2;
  736. MUL R2.xyz, R2, R3.x;
  737. MUL R1.xyz, R1, c[1].x;
  738. MUL R0, R0, c[0];
  739. MUL R3.xyz, R1, R3.x;
  740. MUL R2.xyz, R2, c[1].y;
  741. MIN R1.xyz, R1, R2;
  742. MAX R1.xyz, R1, R3;
  743. MUL result.color.xyz, R0, R1;
  744. MOV result.color.w, R0;
  745. END
  746. # 13 instructions, 4 R-regs
  747. "
  748. }
  749. SubProgram "opengl " {
  750. Keywords { "DIRECTIONAL" "SHADOWS_SCREEN" "LIGHTMAP_ON" "DIRLIGHTMAP_ON" }
  751. Vector 0 [_Color]
  752. SetTexture 0 [_MainTex] 2D 0
  753. SetTexture 1 [_ShadowMapTexture] 2D 1
  754. SetTexture 2 [unity_Lightmap] 2D 2
  755. "!!ARBfp1.0
  756. PARAM c[2] = { program.local[0],
  757. { 8, 2 } };
  758. TEMP R0;
  759. TEMP R1;
  760. TEMP R2;
  761. TEMP R3;
  762. TEX R2, fragment.texcoord[1], texture[2], 2D;
  763. TEX R0, fragment.texcoord[0], texture[0], 2D;
  764. TXP R3.x, fragment.texcoord[2], texture[1], 2D;
  765. MUL R1.xyz, R2.w, R2;
  766. MUL R2.xyz, R2, R3.x;
  767. MUL R1.xyz, R1, c[1].x;
  768. MUL R0, R0, c[0];
  769. MUL R3.xyz, R1, R3.x;
  770. MUL R2.xyz, R2, c[1].y;
  771. MIN R1.xyz, R1, R2;
  772. MAX R1.xyz, R1, R3;
  773. MUL result.color.xyz, R0, R1;
  774. MOV result.color.w, R0;
  775. END
  776. # 13 instructions, 4 R-regs
  777. "
  778. }
  779. }
  780. }
  781. Pass {
  782. Name "FORWARD"
  783. Tags { "LIGHTMODE"="ForwardAdd" "RenderType"="Opaque" }
  784. ZWrite Off
  785. Fog {
  786. Color (0,0,0,0)
  787. }
  788. Blend One One
  789. Program "vp" {
  790. SubProgram "opengl " {
  791. Keywords { "POINT" }
  792. Bind "vertex" Vertex
  793. Bind "normal" Normal
  794. Bind "texcoord" TexCoord0
  795. Matrix 5 [_Object2World]
  796. Matrix 9 [_LightMatrix0]
  797. Vector 13 [_WorldSpaceLightPos0]
  798. Vector 14 [unity_Scale]
  799. Vector 15 [_MainTex_ST]
  800. "!!ARBvp1.0
  801. PARAM c[16] = { program.local[0],
  802. state.matrix.mvp,
  803. program.local[5..15] };
  804. TEMP R0;
  805. TEMP R1;
  806. MUL R1.xyz, vertex.normal, c[14].w;
  807. DP4 R0.z, vertex.position, c[7];
  808. DP4 R0.x, vertex.position, c[5];
  809. DP4 R0.y, vertex.position, c[6];
  810. DP4 R0.w, vertex.position, c[8];
  811. DP4 result.texcoord[3].z, R0, c[11];
  812. DP4 result.texcoord[3].y, R0, c[10];
  813. DP4 result.texcoord[3].x, R0, c[9];
  814. DP3 result.texcoord[1].z, R1, c[7];
  815. DP3 result.texcoord[1].y, R1, c[6];
  816. DP3 result.texcoord[1].x, R1, c[5];
  817. ADD result.texcoord[2].xyz, -R0, c[13];
  818. MAD result.texcoord[0].xy, vertex.texcoord[0], c[15], c[15].zwzw;
  819. DP4 result.position.w, vertex.position, c[4];
  820. DP4 result.position.z, vertex.position, c[3];
  821. DP4 result.position.y, vertex.position, c[2];
  822. DP4 result.position.x, vertex.position, c[1];
  823. END
  824. # 17 instructions, 2 R-regs
  825. "
  826. }
  827. SubProgram "opengl " {
  828. Keywords { "DIRECTIONAL" }
  829. Bind "vertex" Vertex
  830. Bind "normal" Normal
  831. Bind "texcoord" TexCoord0
  832. Matrix 5 [_Object2World]
  833. Vector 9 [_WorldSpaceLightPos0]
  834. Vector 10 [unity_Scale]
  835. Vector 11 [_MainTex_ST]
  836. "!!ARBvp1.0
  837. PARAM c[12] = { program.local[0],
  838. state.matrix.mvp,
  839. program.local[5..11] };
  840. TEMP R0;
  841. MUL R0.xyz, vertex.normal, c[10].w;
  842. DP3 result.texcoord[1].z, R0, c[7];
  843. DP3 result.texcoord[1].y, R0, c[6];
  844. DP3 result.texcoord[1].x, R0, c[5];
  845. MOV result.texcoord[2].xyz, c[9];
  846. MAD result.texcoord[0].xy, vertex.texcoord[0], c[11], c[11].zwzw;
  847. DP4 result.position.w, vertex.position, c[4];
  848. DP4 result.position.z, vertex.position, c[3];
  849. DP4 result.position.y, vertex.position, c[2];
  850. DP4 result.position.x, vertex.position, c[1];
  851. END
  852. # 10 instructions, 1 R-regs
  853. "
  854. }
  855. SubProgram "opengl " {
  856. Keywords { "SPOT" }
  857. Bind "vertex" Vertex
  858. Bind "normal" Normal
  859. Bind "texcoord" TexCoord0
  860. Matrix 5 [_Object2World]
  861. Matrix 9 [_LightMatrix0]
  862. Vector 13 [_WorldSpaceLightPos0]
  863. Vector 14 [unity_Scale]
  864. Vector 15 [_MainTex_ST]
  865. "!!ARBvp1.0
  866. PARAM c[16] = { program.local[0],
  867. state.matrix.mvp,
  868. program.local[5..15] };
  869. TEMP R0;
  870. TEMP R1;
  871. MUL R1.xyz, vertex.normal, c[14].w;
  872. DP4 R0.z, vertex.position, c[7];
  873. DP4 R0.x, vertex.position, c[5];
  874. DP4 R0.y, vertex.position, c[6];
  875. DP4 R0.w, vertex.position, c[8];
  876. DP4 result.texcoord[3].w, R0, c[12];
  877. DP4 result.texcoord[3].z, R0, c[11];
  878. DP4 result.texcoord[3].y, R0, c[10];
  879. DP4 result.texcoord[3].x, R0, c[9];
  880. DP3 result.texcoord[1].z, R1, c[7];
  881. DP3 result.texcoord[1].y, R1, c[6];
  882. DP3 result.texcoord[1].x, R1, c[5];
  883. ADD result.texcoord[2].xyz, -R0, c[13];
  884. MAD result.texcoord[0].xy, vertex.texcoord[0], c[15], c[15].zwzw;
  885. DP4 result.position.w, vertex.position, c[4];
  886. DP4 result.position.z, vertex.position, c[3];
  887. DP4 result.position.y, vertex.position, c[2];
  888. DP4 result.position.x, vertex.position, c[1];
  889. END
  890. # 18 instructions, 2 R-regs
  891. "
  892. }
  893. SubProgram "opengl " {
  894. Keywords { "POINT_COOKIE" }
  895. Bind "vertex" Vertex
  896. Bind "normal" Normal
  897. Bind "texcoord" TexCoord0
  898. Matrix 5 [_Object2World]
  899. Matrix 9 [_LightMatrix0]
  900. Vector 13 [_WorldSpaceLightPos0]
  901. Vector 14 [unity_Scale]
  902. Vector 15 [_MainTex_ST]
  903. "!!ARBvp1.0
  904. PARAM c[16] = { program.local[0],
  905. state.matrix.mvp,
  906. program.local[5..15] };
  907. TEMP R0;
  908. TEMP R1;
  909. MUL R1.xyz, vertex.normal, c[14].w;
  910. DP4 R0.z, vertex.position, c[7];
  911. DP4 R0.x, vertex.position, c[5];
  912. DP4 R0.y, vertex.position, c[6];
  913. DP4 R0.w, vertex.position, c[8];
  914. DP4 result.texcoord[3].z, R0, c[11];
  915. DP4 result.texcoord[3].y, R0, c[10];
  916. DP4 result.texcoord[3].x, R0, c[9];
  917. DP3 result.texcoord[1].z, R1, c[7];
  918. DP3 result.texcoord[1].y, R1, c[6];
  919. DP3 result.texcoord[1].x, R1, c[5];
  920. ADD result.texcoord[2].xyz, -R0, c[13];
  921. MAD result.texcoord[0].xy, vertex.texcoord[0], c[15], c[15].zwzw;
  922. DP4 result.position.w, vertex.position, c[4];
  923. DP4 result.position.z, vertex.position, c[3];
  924. DP4 result.position.y, vertex.position, c[2];
  925. DP4 result.position.x, vertex.position, c[1];
  926. END
  927. # 17 instructions, 2 R-regs
  928. "
  929. }
  930. SubProgram "opengl " {
  931. Keywords { "DIRECTIONAL_COOKIE" }
  932. Bind "vertex" Vertex
  933. Bind "normal" Normal
  934. Bind "texcoord" TexCoord0
  935. Matrix 5 [_Object2World]
  936. Matrix 9 [_LightMatrix0]
  937. Vector 13 [_WorldSpaceLightPos0]
  938. Vector 14 [unity_Scale]
  939. Vector 15 [_MainTex_ST]
  940. "!!ARBvp1.0
  941. PARAM c[16] = { program.local[0],
  942. state.matrix.mvp,
  943. program.local[5..15] };
  944. TEMP R0;
  945. TEMP R1;
  946. MUL R1.xyz, vertex.normal, c[14].w;
  947. DP4 R0.w, vertex.position, c[8];
  948. DP4 R0.z, vertex.position, c[7];
  949. DP4 R0.x, vertex.position, c[5];
  950. DP4 R0.y, vertex.position, c[6];
  951. DP4 result.texcoord[3].y, R0, c[10];
  952. DP4 result.texcoord[3].x, R0, c[9];
  953. DP3 result.texcoord[1].z, R1, c[7];
  954. DP3 result.texcoord[1].y, R1, c[6];
  955. DP3 result.texcoord[1].x, R1, c[5];
  956. MOV result.texcoord[2].xyz, c[13];
  957. MAD result.texcoord[0].xy, vertex.texcoord[0], c[15], c[15].zwzw;
  958. DP4 result.position.w, vertex.position, c[4];
  959. DP4 result.position.z, vertex.position, c[3];
  960. DP4 result.position.y, vertex.position, c[2];
  961. DP4 result.position.x, vertex.position, c[1];
  962. END
  963. # 16 instructions, 2 R-regs
  964. "
  965. }
  966. }
  967. Program "fp" {
  968. SubProgram "opengl " {
  969. Keywords { "POINT" }
  970. Vector 0 [_LightColor0]
  971. Vector 1 [_Color]
  972. SetTexture 0 [_MainTex] 2D 0
  973. SetTexture 1 [_LightTexture0] 2D 1
  974. "!!ARBfp1.0
  975. PARAM c[3] = { program.local[0..1],
  976. { 0, 2 } };
  977. TEMP R0;
  978. TEMP R1;
  979. TEX R0.xyz, fragment.texcoord[0], texture[0], 2D;
  980. DP3 R0.w, fragment.texcoord[3], fragment.texcoord[3];
  981. DP3 R1.x, fragment.texcoord[2], fragment.texcoord[2];
  982. RSQ R1.x, R1.x;
  983. MUL R1.xyz, R1.x, fragment.texcoord[2];
  984. MUL R0.xyz, R0, c[1];
  985. DP3 R1.x, fragment.texcoord[1], R1;
  986. MUL R0.xyz, R0, c[0];
  987. MAX R1.x, R1, c[2];
  988. MOV result.color.w, c[2].x;
  989. TEX R0.w, R0.w, texture[1], 2D;
  990. MUL R0.w, R1.x, R0;
  991. MUL R0.xyz, R0.w, R0;
  992. MUL result.color.xyz, R0, c[2].y;
  993. END
  994. # 14 instructions, 2 R-regs
  995. "
  996. }
  997. SubProgram "opengl " {
  998. Keywords { "DIRECTIONAL" }
  999. Vector 0 [_LightColor0]
  1000. Vector 1 [_Color]
  1001. SetTexture 0 [_MainTex] 2D 0
  1002. "!!ARBfp1.0
  1003. PARAM c[3] = { program.local[0..1],
  1004. { 0, 2 } };
  1005. TEMP R0;
  1006. TEMP R1;
  1007. TEX R0.xyz, fragment.texcoord[0], texture[0], 2D;
  1008. MOV R1.xyz, fragment.texcoord[2];
  1009. MUL R0.xyz, R0, c[1];
  1010. DP3 R0.w, fragment.texcoord[1], R1;
  1011. MUL R0.xyz, R0, c[0];
  1012. MAX R0.w, R0, c[2].x;
  1013. MUL R0.xyz, R0.w, R0;
  1014. MUL result.color.xyz, R0, c[2].y;
  1015. MOV result.color.w, c[2].x;
  1016. END
  1017. # 9 instructions, 2 R-regs
  1018. "
  1019. }
  1020. SubProgram "opengl " {
  1021. Keywords { "SPOT" }
  1022. Vector 0 [_LightColor0]
  1023. Vector 1 [_Color]
  1024. SetTexture 0 [_MainTex] 2D 0
  1025. SetTexture 1 [_LightTexture0] 2D 1
  1026. SetTexture 2 [_LightTextureB0] 2D 2
  1027. "!!ARBfp1.0
  1028. PARAM c[3] = { program.local[0..1],
  1029. { 0, 0.5, 2 } };
  1030. TEMP R0;
  1031. TEMP R1;
  1032. RCP R0.x, fragment.texcoord[3].w;
  1033. MAD R1.xy, fragment.texcoord[3], R0.x, c[2].y;
  1034. DP3 R1.z, fragment.texcoord[3], fragment.texcoord[3];
  1035. MOV result.color.w, c[2].x;
  1036. TEX R0.w, R1, texture[1], 2D;
  1037. TEX R0.xyz, fragment.texcoord[0], texture[0], 2D;
  1038. TEX R1.w, R1.z, texture[2], 2D;
  1039. DP3 R1.x, fragment.texcoord[2], fragment.texcoord[2];
  1040. RSQ R1.x, R1.x;
  1041. MUL R1.xyz, R1.x, fragment.texcoord[2];
  1042. DP3 R1.x, fragment.texcoord[1], R1;
  1043. SLT R1.y, c[2].x, fragment.texcoord[3].z;
  1044. MUL R0.w, R1.y, R0;
  1045. MUL R1.y, R0.w, R1.w;
  1046. MUL R0.xyz, R0, c[1];
  1047. MAX R0.w, R1.x, c[2].x;
  1048. MUL R0.xyz, R0, c[0];
  1049. MUL R0.w, R0, R1.y;
  1050. MUL R0.xyz, R0.w, R0;
  1051. MUL result.color.xyz, R0, c[2].z;
  1052. END
  1053. # 20 instructions, 2 R-regs
  1054. "
  1055. }
  1056. SubProgram "opengl " {
  1057. Keywords { "POINT_COOKIE" }
  1058. Vector 0 [_LightColor0]
  1059. Vector 1 [_Color]
  1060. SetTexture 0 [_MainTex] 2D 0
  1061. SetTexture 1 [_LightTextureB0] 2D 1
  1062. SetTexture 2 [_LightTexture0] CUBE 2
  1063. "!!ARBfp1.0
  1064. PARAM c[3] = { program.local[0..1],
  1065. { 0, 2 } };
  1066. TEMP R0;
  1067. TEMP R1;
  1068. TEX R0.xyz, fragment.texcoord[0], texture[0], 2D;
  1069. TEX R1.w, fragment.texcoord[3], texture[2], CUBE;
  1070. DP3 R0.w, fragment.texcoord[3], fragment.texcoord[3];
  1071. DP3 R1.x, fragment.texcoord[2], fragment.texcoord[2];
  1072. RSQ R1.x, R1.x;
  1073. MUL R1.xyz, R1.x, fragment.texcoord[2];
  1074. MUL R0.xyz, R0, c[1];
  1075. DP3 R1.x, fragment.texcoord[1], R1;
  1076. MUL R0.xyz, R0, c[0];
  1077. MOV result.color.w, c[2].x;
  1078. TEX R0.w, R0.w, texture[1], 2D;
  1079. MUL R1.y, R0.w, R1.w;
  1080. MAX R0.w, R1.x, c[2].x;
  1081. MUL R0.w, R0, R1.y;
  1082. MUL R0.xyz, R0.w, R0;
  1083. MUL result.color.xyz, R0, c[2].y;
  1084. END
  1085. # 16 instructions, 2 R-regs
  1086. "
  1087. }
  1088. SubProgram "opengl " {
  1089. Keywords { "DIRECTIONAL_COOKIE" }
  1090. Vector 0 [_LightColor0]
  1091. Vector 1 [_Color]
  1092. SetTexture 0 [_MainTex] 2D 0
  1093. SetTexture 1 [_LightTexture0] 2D 1
  1094. "!!ARBfp1.0
  1095. PARAM c[3] = { program.local[0..1],
  1096. { 0, 2 } };
  1097. TEMP R0;
  1098. TEMP R1;
  1099. TEX R0.xyz, fragment.texcoord[0], texture[0], 2D;
  1100. TEX R0.w, fragment.texcoord[3], texture[1], 2D;
  1101. MOV R1.xyz, fragment.texcoord[2];
  1102. MUL R0.xyz, R0, c[1];
  1103. DP3 R1.x, fragment.texcoord[1], R1;
  1104. MAX R1.x, R1, c[2];
  1105. MUL R0.xyz, R0, c[0];
  1106. MUL R0.w, R1.x, R0;
  1107. MUL R0.xyz, R0.w, R0;
  1108. MUL result.color.xyz, R0, c[2].y;
  1109. MOV result.color.w, c[2].x;
  1110. END
  1111. # 11 instructions, 2 R-regs
  1112. "
  1113. }
  1114. }
  1115. }
  1116. Pass {
  1117. Name "PREPASS"
  1118. Tags { "LIGHTMODE"="PrePassBase" "RenderType"="Opaque" }
  1119. Fog { Mode Off }
  1120. Program "vp" {
  1121. SubProgram "opengl " {
  1122. Bind "vertex" Vertex
  1123. Bind "normal" Normal
  1124. Matrix 5 [_Object2World]
  1125. Vector 9 [unity_Scale]
  1126. "!!ARBvp1.0
  1127. PARAM c[10] = { program.local[0],
  1128. state.matrix.mvp,
  1129. program.local[5..9] };
  1130. TEMP R0;
  1131. MUL R0.xyz, vertex.normal, c[9].w;
  1132. DP3 result.texcoord[0].z, R0, c[7];
  1133. DP3 result.texcoord[0].y, R0, c[6];
  1134. DP3 result.texcoord[0].x, R0, c[5];
  1135. DP4 result.position.w, vertex.position, c[4];
  1136. DP4 result.position.z, vertex.position, c[3];
  1137. DP4 result.position.y, vertex.position, c[2];
  1138. DP4 result.position.x, vertex.position, c[1];
  1139. END
  1140. # 8 instructions, 1 R-regs
  1141. "
  1142. }
  1143. }
  1144. Program "fp" {
  1145. SubProgram "opengl " {
  1146. "!!ARBfp1.0
  1147. PARAM c[1] = { { 0, 0.5 } };
  1148. MAD result.color.xyz, fragment.texcoord[0], c[0].y, c[0].y;
  1149. MOV result.color.w, c[0].x;
  1150. END
  1151. # 2 instructions, 0 R-regs
  1152. "
  1153. }
  1154. }
  1155. }
  1156. Pass {
  1157. Name "PREPASS"
  1158. Tags { "LIGHTMODE"="PrePassFinal" "RenderType"="Opaque" }
  1159. ZWrite Off
  1160. Program "vp" {
  1161. SubProgram "opengl " {
  1162. Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_OFF" }
  1163. Bind "vertex" Vertex
  1164. Bind "normal" Normal
  1165. Bind "texcoord" TexCoord0
  1166. Matrix 5 [_Object2World]
  1167. Vector 9 [_ProjectionParams]
  1168. Vector 10 [unity_SHAr]
  1169. Vector 11 [unity_SHAg]
  1170. Vector 12 [unity_SHAb]
  1171. Vector 13 [unity_SHBr]
  1172. Vector 14 [unity_SHBg]
  1173. Vector 15 [unity_SHBb]
  1174. Vector 16 [unity_SHC]
  1175. Vector 17 [unity_Scale]
  1176. Vector 18 [_MainTex_ST]
  1177. "!!ARBvp1.0
  1178. PARAM c[19] = { { 0.5, 1 },
  1179. state.matrix.mvp,
  1180. program.local[5..18] };
  1181. TEMP R0;
  1182. TEMP R1;
  1183. TEMP R2;
  1184. TEMP R3;
  1185. MUL R1.xyz, vertex.normal, c[17].w;
  1186. DP3 R2.w, R1, c[6];
  1187. DP3 R0.x, R1, c[5];
  1188. DP3 R0.z, R1, c[7];
  1189. MOV R0.y, R2.w;
  1190. MUL R1, R0.xyzz, R0.yzzx;
  1191. MOV R0.w, c[0].y;
  1192. DP4 R2.z, R0, c[12];
  1193. DP4 R2.y, R0, c[11];
  1194. DP4 R2.x, R0, c[10];
  1195. MUL R0.y, R2.w, R2.w;
  1196. DP4 R3.z, R1, c[15];
  1197. DP4 R3.y, R1, c[14];
  1198. DP4 R3.x, R1, c[13];
  1199. DP4 R1.w, vertex.position, c[4];
  1200. DP4 R1.z, vertex.position, c[3];
  1201. MAD R0.x, R0, R0, -R0.y;
  1202. ADD R3.xyz, R2, R3;
  1203. MUL R2.xyz, R0.x, c[16];
  1204. DP4 R1.x, vertex.position, c[1];
  1205. DP4 R1.y, vertex.position, c[2];
  1206. MUL R0.xyz, R1.xyww, c[0].x;
  1207. MUL R0.y, R0, c[9].x;
  1208. ADD result.texcoord[2].xyz, R3, R2;
  1209. ADD result.texcoord[1].xy, R0, R0.z;
  1210. MOV result.position, R1;
  1211. MOV result.texcoord[1].zw, R1;
  1212. MAD result.texcoord[0].xy, vertex.texcoord[0], c[18], c[18].zwzw;
  1213. END
  1214. # 28 instructions, 4 R-regs
  1215. "
  1216. }
  1217. SubProgram "opengl " {
  1218. Keywords { "LIGHTMAP_ON" "DIRLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_OFF" }
  1219. Bind "vertex" Vertex
  1220. Bind "texcoord" TexCoord0
  1221. Bind "texcoord1" TexCoord1
  1222. Matrix 9 [_Object2World]
  1223. Vector 13 [_ProjectionParams]
  1224. Vector 14 [unity_ShadowFadeCenterAndType]
  1225. Vector 15 [unity_LightmapST]
  1226. Vector 16 [_MainTex_ST]
  1227. "!!ARBvp1.0
  1228. PARAM c[17] = { { 0.5, 1 },
  1229. state.matrix.modelview[0],
  1230. state.matrix.mvp,
  1231. program.local[9..16] };
  1232. TEMP R0;
  1233. TEMP R1;
  1234. DP4 R0.w, vertex.position, c[8];
  1235. DP4 R0.z, vertex.position, c[7];
  1236. DP4 R0.x, vertex.position, c[5];
  1237. DP4 R0.y, vertex.position, c[6];
  1238. MUL R1.xyz, R0.xyww, c[0].x;
  1239. MUL R1.y, R1, c[13].x;
  1240. ADD result.texcoord[1].xy, R1, R1.z;
  1241. MOV result.position, R0;
  1242. MOV R0.x, c[0].y;
  1243. ADD R0.y, R0.x, -c[14].w;
  1244. DP4 R0.x, vertex.position, c[3];
  1245. DP4 R1.z, vertex.position, c[11];
  1246. DP4 R1.x, vertex.position, c[9];
  1247. DP4 R1.y, vertex.position, c[10];
  1248. ADD R1.xyz, R1, -c[14];
  1249. MOV result.texcoord[1].zw, R0;
  1250. MUL result.texcoord[3].xyz, R1, c[14].w;
  1251. MAD result.texcoord[0].xy, vertex.texcoord[0], c[16], c[16].zwzw;
  1252. MAD result.texcoord[2].xy, vertex.texcoord[1], c[15], c[15].zwzw;
  1253. MUL result.texcoord[3].w, -R0.x, R0.y;
  1254. END
  1255. # 20 instructions, 2 R-regs
  1256. "
  1257. }
  1258. SubProgram "opengl " {
  1259. Keywords { "LIGHTMAP_ON" "DIRLIGHTMAP_ON" "HDR_LIGHT_PREPASS_OFF" }
  1260. Bind "vertex" Vertex
  1261. Bind "texcoord" TexCoord0
  1262. Bind "texcoord1" TexCoord1
  1263. Vector 5 [_ProjectionParams]
  1264. Vector 6 [unity_LightmapST]
  1265. Vector 7 [_MainTex_ST]
  1266. "!!ARBvp1.0
  1267. PARAM c[8] = { { 0.5 },
  1268. state.matrix.mvp,
  1269. program.local[5..7] };
  1270. TEMP R0;
  1271. TEMP R1;
  1272. DP4 R0.w, vertex.position, c[4];
  1273. DP4 R0.z, vertex.position, c[3];
  1274. DP4 R0.x, vertex.position, c[1];
  1275. DP4 R0.y, vertex.position, c[2];
  1276. MUL R1.xyz, R0.xyww, c[0].x;
  1277. MUL R1.y, R1, c[5].x;
  1278. ADD result.texcoord[1].xy, R1, R1.z;
  1279. MOV result.position, R0;
  1280. MOV result.texcoord[1].zw, R0;
  1281. MAD result.texcoord[0].xy, vertex.texcoord[0], c[7], c[7].zwzw;
  1282. MAD result.texcoord[2].xy, vertex.texcoord[1], c[6], c[6].zwzw;
  1283. END
  1284. # 11 instructions, 2 R-regs
  1285. "
  1286. }
  1287. SubProgram "opengl " {
  1288. Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_ON" }
  1289. Bind "vertex" Vertex
  1290. Bind "normal" Normal
  1291. Bind "texcoord" TexCoord0
  1292. Matrix 5 [_Object2World]
  1293. Vector 9 [_ProjectionParams]
  1294. Vector 10 [unity_SHAr]
  1295. Vector 11 [unity_SHAg]
  1296. Vector 12 [unity_SHAb]
  1297. Vector 13 [unity_SHBr]
  1298. Vector 14 [unity_SHBg]
  1299. Vector 15 [unity_SHBb]
  1300. Vector 16 [unity_SHC]
  1301. Vector 17 [unity_Scale]
  1302. Vector 18 [_MainTex_ST]
  1303. "!!ARBvp1.0
  1304. PARAM c[19] = { { 0.5, 1 },
  1305. state.matrix.mvp,
  1306. program.local[5..18] };
  1307. TEMP R0;
  1308. TEMP R1;
  1309. TEMP R2;
  1310. TEMP R3;
  1311. MUL R1.xyz, vertex.normal, c[17].w;
  1312. DP3 R2.w, R1, c[6];
  1313. DP3 R0.x, R1, c[5];
  1314. DP3 R0.z, R1, c[7];
  1315. MOV R0.y, R2.w;
  1316. MUL R1, R0.xyzz, R0.yzzx;
  1317. MOV R0.w, c[0].y;
  1318. DP4 R2.z, R0, c[12];
  1319. DP4 R2.y, R0, c[11];
  1320. DP4 R2.x, R0, c[10];
  1321. MUL R0.y, R2.w, R2.w;
  1322. DP4 R3.z, R1, c[15];
  1323. DP4 R3.y, R1, c[14];
  1324. DP4 R3.x, R1, c[13];
  1325. DP4 R1.w, vertex.position, c[4];
  1326. DP4 R1.z, vertex.position, c[3];
  1327. MAD R0.x, R0, R0, -R0.y;
  1328. ADD R3.xyz, R2, R3;
  1329. MUL R2.xyz, R0.x, c[16];
  1330. DP4 R1.x, vertex.position, c[1];
  1331. DP4 R1.y, vertex.position, c[2];
  1332. MUL R0.xyz, R1.xyww, c[0].x;
  1333. MUL R0.y, R0, c[9].x;
  1334. ADD result.texcoord[2].xyz, R3, R2;
  1335. ADD result.texcoord[1].xy, R0, R0.z;
  1336. MOV result.position, R1;
  1337. MOV result.texcoord[1].zw, R1;
  1338. MAD result.texcoord[0].xy, vertex.texcoord[0], c[18], c[18].zwzw;
  1339. END
  1340. # 28 instructions, 4 R-regs
  1341. "
  1342. }
  1343. SubProgram "opengl " {
  1344. Keywords { "LIGHTMAP_ON" "DIRLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_ON" }
  1345. Bind "vertex" Vertex
  1346. Bind "texcoord" TexCoord0
  1347. Bind "texcoord1" TexCoord1
  1348. Matrix 9 [_Object2World]
  1349. Vector 13 [_ProjectionParams]
  1350. Vector 14 [unity_ShadowFadeCenterAndType]
  1351. Vector 15 [unity_LightmapST]
  1352. Vector 16 [_MainTex_ST]
  1353. "!!ARBvp1.0
  1354. PARAM c[17] = { { 0.5, 1 },
  1355. state.matrix.modelview[0],
  1356. state.matrix.mvp,
  1357. program.local[9..16] };
  1358. TEMP R0;
  1359. TEMP R1;
  1360. DP4 R0.w, vertex.position, c[8];
  1361. DP4 R0.z, vertex.position, c[7];
  1362. DP4 R0.x, vertex.position, c[5];
  1363. DP4 R0.y, vertex.position, c[6];
  1364. MUL R1.xyz, R0.xyww, c[0].x;
  1365. MUL R1.y, R1, c[13].x;
  1366. ADD result.texcoord[1].xy, R1, R1.z;
  1367. MOV result.position, R0;
  1368. MOV R0.x, c[0].y;
  1369. ADD R0.y, R0.x, -c[14].w;
  1370. DP4 R0.x, vertex.position, c[3];
  1371. DP4 R1.z, vertex.position, c[11];
  1372. DP4 R1.x, vertex.position, c[9];
  1373. DP4 R1.y, vertex.position, c[10];
  1374. ADD R1.xyz, R1, -c[14];
  1375. MOV result.texcoord[1].zw, R0;
  1376. MUL result.texcoord[3].xyz, R1, c[14].w;
  1377. MAD result.texcoord[0].xy, vertex.texcoord[0], c[16], c[16].zwzw;
  1378. MAD result.texcoord[2].xy, vertex.texcoord[1], c[15], c[15].zwzw;
  1379. MUL result.texcoord[3].w, -R0.x, R0.y;
  1380. END
  1381. # 20 instructions, 2 R-regs
  1382. "
  1383. }
  1384. SubProgram "opengl " {
  1385. Keywords { "LIGHTMAP_ON" "DIRLIGHTMAP_ON" "HDR_LIGHT_PREPASS_ON" }
  1386. Bind "vertex" Vertex
  1387. Bind "texcoord" TexCoord0
  1388. Bind "texcoord1" TexCoord1
  1389. Vector 5 [_ProjectionParams]
  1390. Vector 6 [unity_LightmapST]
  1391. Vector 7 [_MainTex_ST]
  1392. "!!ARBvp1.0
  1393. PARAM c[8] = { { 0.5 },
  1394. state.matrix.mvp,
  1395. program.local[5..7] };
  1396. TEMP R0;
  1397. TEMP R1;
  1398. DP4 R0.w, vertex.position, c[4];
  1399. DP4 R0.z, vertex.position, c[3];
  1400. DP4 R0.x, vertex.position, c[1];
  1401. DP4 R0.y, vertex.position, c[2];
  1402. MUL R1.xyz, R0.xyww, c[0].x;
  1403. MUL R1.y, R1, c[5].x;
  1404. ADD result.texcoord[1].xy, R1, R1.z;
  1405. MOV result.position, R0;
  1406. MOV result.texcoord[1].zw, R0;
  1407. MAD result.texcoord[0].xy, vertex.texcoord[0], c[7], c[7].zwzw;
  1408. MAD result.texcoord[2].xy, vertex.texcoord[1], c[6], c[6].zwzw;
  1409. END
  1410. # 11 instructions, 2 R-regs
  1411. "
  1412. }
  1413. }
  1414. Program "fp" {
  1415. SubProgram "opengl " {
  1416. Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_OFF" }
  1417. Vector 0 [_Color]
  1418. SetTexture 0 [_MainTex] 2D 0
  1419. SetTexture 1 [_LightBuffer] 2D 1
  1420. "!!ARBfp1.0
  1421. PARAM c[1] = { program.local[0] };
  1422. TEMP R0;
  1423. TEMP R1;
  1424. TXP R1.xyz, fragment.texcoord[1], texture[1], 2D;
  1425. TEX R0, fragment.texcoord[0], texture[0], 2D;
  1426. MUL R0, R0, c[0];
  1427. LG2 R1.x, R1.x;
  1428. LG2 R1.z, R1.z;
  1429. LG2 R1.y, R1.y;
  1430. ADD R1.xyz, -R1, fragment.texcoord[2];
  1431. MUL result.color.xyz, R0, R1;
  1432. MOV result.color.w, R0;
  1433. END
  1434. # 9 instructions, 2 R-regs
  1435. "
  1436. }
  1437. SubProgram "opengl " {
  1438. Keywords { "LIGHTMAP_ON" "DIRLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_OFF" }
  1439. Vector 0 [_Color]
  1440. Vector 1 [unity_LightmapFade]
  1441. SetTexture 0 [_MainTex] 2D 0
  1442. SetTexture 1 [_LightBuffer] 2D 1
  1443. SetTexture 2 [unity_Lightmap] 2D 2
  1444. SetTexture 3 [unity_LightmapInd] 2D 3
  1445. "!!ARBfp1.0
  1446. PARAM c[3] = { program.local[0..1],
  1447. { 8 } };
  1448. TEMP R0;
  1449. TEMP R1;
  1450. TEMP R2;
  1451. TEMP R3;
  1452. TEX R1, fragment.texcoord[2], texture[3], 2D;
  1453. TEX R2, fragment.texcoord[2], texture[2], 2D;
  1454. TEX R0, fragment.texcoord[0], texture[0], 2D;
  1455. TXP R3.xyz, fragment.texcoord[1], texture[1], 2D;
  1456. MUL R2.xyz, R2.w, R2;
  1457. MUL R1.xyz, R1.w, R1;
  1458. MUL R1.xyz, R1, c[2].x;
  1459. MUL R0, R0, c[0];
  1460. DP4 R2.w, fragment.texcoord[3], fragment.texcoord[3];
  1461. RSQ R1.w, R2.w;
  1462. RCP R1.w, R1.w;
  1463. MAD R2.xyz, R2, c[2].x, -R1;
  1464. MAD_SAT R1.w, R1, c[1].z, c[1];
  1465. MAD R1.xyz, R1.w, R2, R1;
  1466. LG2 R2.x, R3.x;
  1467. LG2 R2.y, R3.y;
  1468. LG2 R2.z, R3.z;
  1469. ADD R1.xyz, -R2, R1;
  1470. MUL result.color.xyz, R0, R1;
  1471. MOV result.color.w, R0;
  1472. END
  1473. # 20 instructions, 4 R-regs
  1474. "
  1475. }
  1476. SubProgram "opengl " {
  1477. Keywords { "LIGHTMAP_ON" "DIRLIGHTMAP_ON" "HDR_LIGHT_PREPASS_OFF" }
  1478. Vector 0 [_Color]
  1479. SetTexture 0 [_MainTex] 2D 0
  1480. SetTexture 1 [_LightBuffer] 2D 1
  1481. SetTexture 2 [unity_Lightmap] 2D 2
  1482. "!!ARBfp1.0
  1483. PARAM c[2] = { program.local[0],
  1484. { 8 } };
  1485. TEMP R0;
  1486. TEMP R1;
  1487. TEMP R2;
  1488. TXP R2.xyz, fragment.texcoord[1], texture[1], 2D;
  1489. TEX R0, fragment.texcoord[0], texture[0], 2D;
  1490. TEX R1, fragment.texcoord[2], texture[2], 2D;
  1491. MUL R0, R0, c[0];
  1492. MUL R1.xyz, R1.w, R1;
  1493. LG2 R2.x, R2.x;
  1494. LG2 R2.z, R2.z;
  1495. LG2 R2.y, R2.y;
  1496. MAD R1.xyz, R1, c[1].x, -R2;
  1497. MUL result.color.xyz, R0, R1;
  1498. MOV result.color.w, R0;
  1499. END
  1500. # 11 instructions, 3 R-regs
  1501. "
  1502. }
  1503. SubProgram "opengl " {
  1504. Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_ON" }
  1505. Vector 0 [_Color]
  1506. SetTexture 0 [_MainTex] 2D 0
  1507. SetTexture 1 [_LightBuffer] 2D 1
  1508. "!!ARBfp1.0
  1509. PARAM c[1] = { program.local[0] };
  1510. TEMP R0;
  1511. TEMP R1;
  1512. TXP R1.xyz, fragment.texcoord[1], texture[1], 2D;
  1513. TEX R0, fragment.texcoord[0], texture[0], 2D;
  1514. MUL R0, R0, c[0];
  1515. ADD R1.xyz, R1, fragment.texcoord[2];
  1516. MUL result.color.xyz, R0, R1;
  1517. MOV result.color.w, R0;
  1518. END
  1519. # 6 instructions, 2 R-regs
  1520. "
  1521. }
  1522. SubProgram "opengl " {
  1523. Keywords { "LIGHTMAP_ON" "DIRLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_ON" }
  1524. Vector 0 [_Color]
  1525. Vector 1 [unity_LightmapFade]
  1526. SetTexture 0 [_MainTex] 2D 0
  1527. SetTexture 1 [_LightBuffer] 2D 1
  1528. SetTexture 2 [unity_Lightmap] 2D 2
  1529. SetTexture 3 [unity_LightmapInd] 2D 3
  1530. "!!ARBfp1.0
  1531. PARAM c[3] = { program.local[0..1],
  1532. { 8 } };
  1533. TEMP R0;
  1534. TEMP R1;
  1535. TEMP R2;
  1536. TEMP R3;
  1537. TEX R1, fragment.texcoord[2], texture[3], 2D;
  1538. TEX R2, fragment.texcoord[2], texture[2], 2D;
  1539. TEX R0, fragment.texcoord[0], texture[0], 2D;
  1540. TXP R3.xyz, fragment.texcoord[1], texture[1], 2D;
  1541. MUL R2.xyz, R2.w, R2;
  1542. MUL R1.xyz, R1.w, R1;
  1543. MUL R1.xyz, R1, c[2].x;
  1544. MUL R0, R0, c[0];
  1545. DP4 R2.w, fragment.texcoord[3], fragment.texcoord[3];
  1546. RSQ R1.w, R2.w;
  1547. RCP R1.w, R1.w;
  1548. MAD R2.xyz, R2, c[2].x, -R1;
  1549. MAD_SAT R1.w, R1, c[1].z, c[1];
  1550. MAD R1.xyz, R1.w, R2, R1;
  1551. ADD R1.xyz, R3, R1;
  1552. MUL result.color.xyz, R0, R1;
  1553. MOV result.color.w, R0;
  1554. END
  1555. # 17 instructions, 4 R-regs
  1556. "
  1557. }
  1558. SubProgram "opengl " {
  1559. Keywords { "LIGHTMAP_ON" "DIRLIGHTMAP_ON" "HDR_LIGHT_PREPASS_ON" }
  1560. Vector 0 [_Color]
  1561. SetTexture 0 [_MainTex] 2D 0
  1562. SetTexture 1 [_LightBuffer] 2D 1
  1563. SetTexture 2 [unity_Lightmap] 2D 2
  1564. "!!ARBfp1.0
  1565. PARAM c[2] = { program.local[0],
  1566. { 8 } };
  1567. TEMP R0;
  1568. TEMP R1;
  1569. TEMP R2;
  1570. TEX R0, fragment.texcoord[0], texture[0], 2D;
  1571. TEX R1, fragment.texcoord[2], texture[2], 2D;
  1572. TXP R2.xyz, fragment.texcoord[1], texture[1], 2D;
  1573. MUL R0, R0, c[0];
  1574. MUL R1.xyz, R1.w, R1;
  1575. MAD R1.xyz, R1, c[1].x, R2;
  1576. MUL result.color.xyz, R0, R1;
  1577. MOV result.color.w, R0;
  1578. END
  1579. # 8 instructions, 3 R-regs
  1580. "
  1581. }
  1582. }
  1583. }
  1584. }
  1585. Fallback "VertexLit"
  1586. } VertexLit&�Shader "Hidden/TerrainEngine/Details/Vertexlit" {
  1587. Properties {
  1588. _MainTex ("Main Texture", 2D) = "white" {}
  1589. }
  1590. SubShader {
  1591. LOD 200
  1592. Tags { "RenderType"="Opaque" }
  1593. Pass {
  1594. Name "FORWARD"
  1595. Tags { "LIGHTMODE"="ForwardBase" "SHADOWSUPPORT"="true" "RenderType"="Opaque" }
  1596. Program "vp" {
  1597. SubProgram "opengl " {
  1598. Keywords { "DIRECTIONAL" "SHADOWS_OFF" "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" }
  1599. Bind "vertex" Vertex
  1600. Bind "color" Color
  1601. Bind "normal" Normal
  1602. Bind "texcoord" TexCoord0
  1603. Matrix 5 [_Object2World]
  1604. Vector 9 [unity_SHAr]
  1605. Vector 10 [unity_SHAg]
  1606. Vector 11 [unity_SHAb]
  1607. Vector 12 [unity_SHBr]
  1608. Vector 13 [unity_SHBg]
  1609. Vector 14 [unity_SHBb]
  1610. Vector 15 [unity_SHC]
  1611. Vector 16 [unity_Scale]
  1612. Vector 17 [_MainTex_ST]
  1613. "!!ARBvp1.0
  1614. PARAM c[18] = { { 1 },
  1615. state.matrix.mvp,
  1616. program.local[5..17] };
  1617. TEMP R0;
  1618. TEMP R1;
  1619. TEMP R2;
  1620. TEMP R3;
  1621. MUL R1.xyz, vertex.normal, c[16].w;
  1622. DP3 R3.w, R1, c[6];
  1623. DP3 R2.w, R1, c[7];
  1624. DP3 R0.x, R1, c[5];
  1625. MOV R0.y, R3.w;
  1626. MOV R0.z, R2.w;
  1627. MUL R1, R0.xyzz, R0.yzzx;
  1628. MOV R0.w, c[0].x;
  1629. DP4 R2.z, R0, c[11];
  1630. DP4 R2.y, R0, c[10];
  1631. DP4 R2.x, R0, c[9];
  1632. MUL R0.y, R3.w, R3.w;
  1633. DP4 R3.z, R1, c[14];
  1634. DP4 R3.y, R1, c[13];
  1635. DP4 R3.x, R1, c[12];
  1636. MAD R0.y, R0.x, R0.x, -R0;
  1637. MUL R1.xyz, R0.y, c[15];
  1638. ADD R2.xyz, R2, R3;
  1639. ADD result.texcoord[2].xyz, R2, R1;
  1640. MOV result.color, vertex.color;
  1641. MOV result.texcoord[1].z, R2.w;
  1642. MOV result.texcoord[1].y, R3.w;
  1643. MOV result.texcoord[1].x, R0;
  1644. MAD result.texcoord[0].xy, vertex.texcoord[0], c[17], c[17].zwzw;
  1645. DP4 result.position.w, vertex.position, c[4];
  1646. DP4 result.position.z, vertex.position, c[3];
  1647. DP4 result.position.y, vertex.position, c[2];
  1648. DP4 result.position.x, vertex.position, c[1];
  1649. END
  1650. # 28 instructions, 4 R-regs
  1651. "
  1652. }
  1653. SubProgram "opengl " {
  1654. Keywords { "DIRECTIONAL" "SHADOWS_OFF" "LIGHTMAP_ON" "DIRLIGHTMAP_OFF" }
  1655. Bind "vertex" Vertex
  1656. Bind "color" Color
  1657. Bind "texcoord" TexCoord0
  1658. Bind "texcoord1" TexCoord1
  1659. Vector 9 [unity_LightmapST]
  1660. Vector 10 [_MainTex_ST]
  1661. "!!ARBvp1.0
  1662. PARAM c[11] = { program.local[0],
  1663. state.matrix.mvp,
  1664. program.local[5..10] };
  1665. MOV result.color, vertex.color;
  1666. MAD result.texcoord[0].xy, vertex.texcoord[0], c[10], c[10].zwzw;
  1667. MAD result.texcoord[1].xy, vertex.texcoord[1], c[9], c[9].zwzw;
  1668. DP4 result.position.w, vertex.position, c[4];
  1669. DP4 result.position.z, vertex.position, c[3];
  1670. DP4 result.position.y, vertex.position, c[2];
  1671. DP4 result.position.x, vertex.position, c[1];
  1672. END
  1673. # 7 instructions, 0 R-regs
  1674. "
  1675. }
  1676. SubProgram "opengl " {
  1677. Keywords { "DIRECTIONAL" "SHADOWS_OFF" "LIGHTMAP_ON" "DIRLIGHTMAP_ON" }
  1678. Bind "vertex" Vertex
  1679. Bind "color" Color
  1680. Bind "texcoord" TexCoord0
  1681. Bind "texcoord1" TexCoord1
  1682. Vector 9 [unity_LightmapST]
  1683. Vector 10 [_MainTex_ST]
  1684. "!!ARBvp1.0
  1685. PARAM c[11] = { program.local[0],
  1686. state.matrix.mvp,
  1687. program.local[5..10] };
  1688. MOV result.color, vertex.color;
  1689. MAD result.texcoord[0].xy, vertex.texcoord[0], c[10], c[10].zwzw;
  1690. MAD result.texcoord[1].xy, vertex.texcoord[1], c[9], c[9].zwzw;
  1691. DP4 result.position.w, vertex.position, c[4];
  1692. DP4 result.position.z, vertex.position, c[3];
  1693. DP4 result.position.y, vertex.position, c[2];
  1694. DP4 result.position.x, vertex.position, c[1];
  1695. END
  1696. # 7 instructions, 0 R-regs
  1697. "
  1698. }
  1699. SubProgram "opengl " {
  1700. Keywords { "DIRECTIONAL" "SHADOWS_SCREEN" "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" }
  1701. Bind "vertex" Vertex
  1702. Bind "color" Color
  1703. Bind "normal" Normal
  1704. Bind "texcoord" TexCoord0
  1705. Matrix 5 [_Object2World]
  1706. Vector 9 [_ProjectionParams]
  1707. Vector 10 [unity_SHAr]
  1708. Vector 11 [unity_SHAg]
  1709. Vector 12 [unity_SHAb]
  1710. Vector 13 [unity_SHBr]
  1711. Vector 14 [unity_SHBg]
  1712. Vector 15 [unity_SHBb]
  1713. Vector 16 [unity_SHC]
  1714. Vector 17 [unity_Scale]
  1715. Vector 18 [_MainTex_ST]
  1716. "!!ARBvp1.0
  1717. PARAM c[19] = { { 1, 0.5 },
  1718. state.matrix.mvp,
  1719. program.local[5..18] };
  1720. TEMP R0;
  1721. TEMP R1;
  1722. TEMP R2;
  1723. TEMP R3;
  1724. MUL R0.xyz, vertex.normal, c[17].w;
  1725. DP3 R3.w, R0, c[6];
  1726. DP3 R2.w, R0, c[7];
  1727. DP3 R1.w, R0, c[5];
  1728. MOV R1.x, R3.w;
  1729. MOV R1.y, R2.w;
  1730. MOV R1.z, c[0].x;
  1731. MUL R0, R1.wxyy, R1.xyyw;
  1732. DP4 R2.z, R1.wxyz, c[12];
  1733. DP4 R2.y, R1.wxyz, c[11];
  1734. DP4 R2.x, R1.wxyz, c[10];
  1735. DP4 R1.z, R0, c[15];
  1736. DP4 R1.y, R0, c[14];
  1737. DP4 R1.x, R0, c[13];
  1738. MUL R3.x, R3.w, R3.w;
  1739. MAD R0.x, R1.w, R1.w, -R3;
  1740. ADD R3.xyz, R2, R1;
  1741. MUL R2.xyz, R0.x, c[16];
  1742. DP4 R0.w, vertex.position, c[4];
  1743. DP4 R0.z, vertex.position, c[3];
  1744. DP4 R0.x, vertex.position, c[1];
  1745. DP4 R0.y, vertex.position, c[2];
  1746. MUL R1.xyz, R0.xyww, c[0].y;
  1747. MUL R1.y, R1, c[9].x;
  1748. ADD result.texcoord[2].xyz, R3, R2;
  1749. ADD result.texcoord[3].xy, R1, R1.z;
  1750. MOV result.position, R0;
  1751. MOV result.color, vertex.color;
  1752. MOV result.texcoord[3].zw, R0;
  1753. MOV result.texcoord[1].z, R2.w;
  1754. MOV re
Advertisement
Add Comment
Please, Sign In to add comment