源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1132 lines
27 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class PostEffectWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(PostEffect), typeof(UnityStandardAssets.ImageEffects.PostEffectsBase));
  9. L.RegFunction("GetSupported", GetSupported);
  10. L.RegFunction("CheckResources", CheckResources);
  11. L.RegFunction("ApplyFXAAMaterialProperties", ApplyFXAAMaterialProperties);
  12. L.RegFunction("ApplyBloomMaterialProperties", ApplyBloomMaterialProperties);
  13. L.RegFunction("ApplyBlurMaterialProperties", ApplyBlurMaterialProperties);
  14. L.RegFunction("RenderBlurScreenShot", RenderBlurScreenShot);
  15. L.RegFunction("ReleaseRenderTexCache", ReleaseRenderTexCache);
  16. L.RegFunction("__eq", op_Equality);
  17. L.RegFunction("__tostring", ToLua.op_ToString);
  18. L.RegVar("EnableFXAA", get_EnableFXAA, set_EnableFXAA);
  19. L.RegVar("contrastThreshold", get_contrastThreshold, set_contrastThreshold);
  20. L.RegVar("relativeThreshold", get_relativeThreshold, set_relativeThreshold);
  21. L.RegVar("subpixelBlending", get_subpixelBlending, set_subpixelBlending);
  22. L.RegVar("FXAAShader", get_FXAAShader, set_FXAAShader);
  23. L.RegVar("lowQuality", get_lowQuality, set_lowQuality);
  24. L.RegVar("EnableBloom", get_EnableBloom, set_EnableBloom);
  25. L.RegVar("threshold", get_threshold, set_threshold);
  26. L.RegVar("intensity", get_intensity, set_intensity);
  27. L.RegVar("blurSize", get_blurSize, set_blurSize);
  28. L.RegVar("blurIterations", get_blurIterations, set_blurIterations);
  29. L.RegVar("blurType", get_blurType, set_blurType);
  30. L.RegVar("fastBloomShader", get_fastBloomShader, set_fastBloomShader);
  31. L.RegVar("dualBloomShader", get_dualBloomShader, set_dualBloomShader);
  32. L.RegVar("use_dual_bloom", get_use_dual_bloom, set_use_dual_bloom);
  33. L.RegVar("EnableBlur", get_EnableBlur, set_EnableBlur);
  34. L.RegVar("use_dual_blur", get_use_dual_blur, set_use_dual_blur);
  35. L.RegVar("blurShader", get_blurShader, set_blurShader);
  36. L.RegVar("render_blur_effect", get_render_blur_effect, set_render_blur_effect);
  37. L.RegVar("get_screen_shot", get_get_screen_shot, set_get_screen_shot);
  38. L.RegVar("blurSpread", get_blurSpread, set_blurSpread);
  39. L.RegVar("blur_amount", get_blur_amount, set_blur_amount);
  40. L.RegVar("recurveMaxNum", get_recurveMaxNum, set_recurveMaxNum);
  41. L.RegVar("downSample", get_downSample, set_downSample);
  42. L.RegVar("dualBlurShader", get_dualBlurShader, set_dualBlurShader);
  43. L.EndClass();
  44. }
  45. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  46. static int GetSupported(IntPtr L)
  47. {
  48. try
  49. {
  50. ToLua.CheckArgsCount(L, 1);
  51. PostEffect obj = (PostEffect)ToLua.CheckObject(L, 1, typeof(PostEffect));
  52. bool o = obj.GetSupported();
  53. LuaDLL.lua_pushboolean(L, o);
  54. return 1;
  55. }
  56. catch(Exception e)
  57. {
  58. return LuaDLL.toluaL_exception(L, e);
  59. }
  60. }
  61. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  62. static int CheckResources(IntPtr L)
  63. {
  64. try
  65. {
  66. ToLua.CheckArgsCount(L, 1);
  67. PostEffect obj = (PostEffect)ToLua.CheckObject(L, 1, typeof(PostEffect));
  68. bool o = obj.CheckResources();
  69. LuaDLL.lua_pushboolean(L, o);
  70. return 1;
  71. }
  72. catch(Exception e)
  73. {
  74. return LuaDLL.toluaL_exception(L, e);
  75. }
  76. }
  77. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  78. static int ApplyFXAAMaterialProperties(IntPtr L)
  79. {
  80. try
  81. {
  82. ToLua.CheckArgsCount(L, 1);
  83. PostEffect obj = (PostEffect)ToLua.CheckObject(L, 1, typeof(PostEffect));
  84. obj.ApplyFXAAMaterialProperties();
  85. return 0;
  86. }
  87. catch(Exception e)
  88. {
  89. return LuaDLL.toluaL_exception(L, e);
  90. }
  91. }
  92. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  93. static int ApplyBloomMaterialProperties(IntPtr L)
  94. {
  95. try
  96. {
  97. ToLua.CheckArgsCount(L, 1);
  98. PostEffect obj = (PostEffect)ToLua.CheckObject(L, 1, typeof(PostEffect));
  99. obj.ApplyBloomMaterialProperties();
  100. return 0;
  101. }
  102. catch(Exception e)
  103. {
  104. return LuaDLL.toluaL_exception(L, e);
  105. }
  106. }
  107. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  108. static int ApplyBlurMaterialProperties(IntPtr L)
  109. {
  110. try
  111. {
  112. ToLua.CheckArgsCount(L, 1);
  113. PostEffect obj = (PostEffect)ToLua.CheckObject(L, 1, typeof(PostEffect));
  114. obj.ApplyBlurMaterialProperties();
  115. return 0;
  116. }
  117. catch(Exception e)
  118. {
  119. return LuaDLL.toluaL_exception(L, e);
  120. }
  121. }
  122. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  123. static int RenderBlurScreenShot(IntPtr L)
  124. {
  125. try
  126. {
  127. ToLua.CheckArgsCount(L, 4);
  128. PostEffect obj = (PostEffect)ToLua.CheckObject(L, 1, typeof(PostEffect));
  129. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  130. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  131. LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
  132. obj.RenderBlurScreenShot(arg0, arg1, arg2);
  133. return 0;
  134. }
  135. catch(Exception e)
  136. {
  137. return LuaDLL.toluaL_exception(L, e);
  138. }
  139. }
  140. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  141. static int ReleaseRenderTexCache(IntPtr L)
  142. {
  143. try
  144. {
  145. ToLua.CheckArgsCount(L, 1);
  146. PostEffect obj = (PostEffect)ToLua.CheckObject(L, 1, typeof(PostEffect));
  147. obj.ReleaseRenderTexCache();
  148. return 0;
  149. }
  150. catch(Exception e)
  151. {
  152. return LuaDLL.toluaL_exception(L, e);
  153. }
  154. }
  155. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  156. static int op_Equality(IntPtr L)
  157. {
  158. try
  159. {
  160. ToLua.CheckArgsCount(L, 2);
  161. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  162. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  163. bool o = arg0 == arg1;
  164. LuaDLL.lua_pushboolean(L, o);
  165. return 1;
  166. }
  167. catch(Exception e)
  168. {
  169. return LuaDLL.toluaL_exception(L, e);
  170. }
  171. }
  172. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  173. static int get_EnableFXAA(IntPtr L)
  174. {
  175. object o = null;
  176. try
  177. {
  178. o = ToLua.ToObject(L, 1);
  179. PostEffect obj = (PostEffect)o;
  180. bool ret = obj.EnableFXAA;
  181. LuaDLL.lua_pushboolean(L, ret);
  182. return 1;
  183. }
  184. catch(Exception e)
  185. {
  186. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EnableFXAA on a nil value" : e.Message);
  187. }
  188. }
  189. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  190. static int get_contrastThreshold(IntPtr L)
  191. {
  192. object o = null;
  193. try
  194. {
  195. o = ToLua.ToObject(L, 1);
  196. PostEffect obj = (PostEffect)o;
  197. float ret = obj.contrastThreshold;
  198. LuaDLL.lua_pushnumber(L, ret);
  199. return 1;
  200. }
  201. catch(Exception e)
  202. {
  203. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index contrastThreshold on a nil value" : e.Message);
  204. }
  205. }
  206. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  207. static int get_relativeThreshold(IntPtr L)
  208. {
  209. object o = null;
  210. try
  211. {
  212. o = ToLua.ToObject(L, 1);
  213. PostEffect obj = (PostEffect)o;
  214. float ret = obj.relativeThreshold;
  215. LuaDLL.lua_pushnumber(L, ret);
  216. return 1;
  217. }
  218. catch(Exception e)
  219. {
  220. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index relativeThreshold on a nil value" : e.Message);
  221. }
  222. }
  223. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  224. static int get_subpixelBlending(IntPtr L)
  225. {
  226. object o = null;
  227. try
  228. {
  229. o = ToLua.ToObject(L, 1);
  230. PostEffect obj = (PostEffect)o;
  231. float ret = obj.subpixelBlending;
  232. LuaDLL.lua_pushnumber(L, ret);
  233. return 1;
  234. }
  235. catch(Exception e)
  236. {
  237. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index subpixelBlending on a nil value" : e.Message);
  238. }
  239. }
  240. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  241. static int get_FXAAShader(IntPtr L)
  242. {
  243. object o = null;
  244. try
  245. {
  246. o = ToLua.ToObject(L, 1);
  247. PostEffect obj = (PostEffect)o;
  248. UnityEngine.Shader ret = obj.FXAAShader;
  249. ToLua.Push(L, ret);
  250. return 1;
  251. }
  252. catch(Exception e)
  253. {
  254. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index FXAAShader on a nil value" : e.Message);
  255. }
  256. }
  257. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  258. static int get_lowQuality(IntPtr L)
  259. {
  260. object o = null;
  261. try
  262. {
  263. o = ToLua.ToObject(L, 1);
  264. PostEffect obj = (PostEffect)o;
  265. bool ret = obj.lowQuality;
  266. LuaDLL.lua_pushboolean(L, ret);
  267. return 1;
  268. }
  269. catch(Exception e)
  270. {
  271. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lowQuality on a nil value" : e.Message);
  272. }
  273. }
  274. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  275. static int get_EnableBloom(IntPtr L)
  276. {
  277. object o = null;
  278. try
  279. {
  280. o = ToLua.ToObject(L, 1);
  281. PostEffect obj = (PostEffect)o;
  282. bool ret = obj.EnableBloom;
  283. LuaDLL.lua_pushboolean(L, ret);
  284. return 1;
  285. }
  286. catch(Exception e)
  287. {
  288. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EnableBloom on a nil value" : e.Message);
  289. }
  290. }
  291. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  292. static int get_threshold(IntPtr L)
  293. {
  294. object o = null;
  295. try
  296. {
  297. o = ToLua.ToObject(L, 1);
  298. PostEffect obj = (PostEffect)o;
  299. float ret = obj.threshold;
  300. LuaDLL.lua_pushnumber(L, ret);
  301. return 1;
  302. }
  303. catch(Exception e)
  304. {
  305. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index threshold on a nil value" : e.Message);
  306. }
  307. }
  308. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  309. static int get_intensity(IntPtr L)
  310. {
  311. object o = null;
  312. try
  313. {
  314. o = ToLua.ToObject(L, 1);
  315. PostEffect obj = (PostEffect)o;
  316. float ret = obj.intensity;
  317. LuaDLL.lua_pushnumber(L, ret);
  318. return 1;
  319. }
  320. catch(Exception e)
  321. {
  322. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index intensity on a nil value" : e.Message);
  323. }
  324. }
  325. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  326. static int get_blurSize(IntPtr L)
  327. {
  328. object o = null;
  329. try
  330. {
  331. o = ToLua.ToObject(L, 1);
  332. PostEffect obj = (PostEffect)o;
  333. float ret = obj.blurSize;
  334. LuaDLL.lua_pushnumber(L, ret);
  335. return 1;
  336. }
  337. catch(Exception e)
  338. {
  339. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurSize on a nil value" : e.Message);
  340. }
  341. }
  342. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  343. static int get_blurIterations(IntPtr L)
  344. {
  345. object o = null;
  346. try
  347. {
  348. o = ToLua.ToObject(L, 1);
  349. PostEffect obj = (PostEffect)o;
  350. int ret = obj.blurIterations;
  351. LuaDLL.lua_pushinteger(L, ret);
  352. return 1;
  353. }
  354. catch(Exception e)
  355. {
  356. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurIterations on a nil value" : e.Message);
  357. }
  358. }
  359. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  360. static int get_blurType(IntPtr L)
  361. {
  362. object o = null;
  363. try
  364. {
  365. o = ToLua.ToObject(L, 1);
  366. PostEffect obj = (PostEffect)o;
  367. BlurType ret = obj.blurType;
  368. ToLua.Push(L, ret);
  369. return 1;
  370. }
  371. catch(Exception e)
  372. {
  373. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurType on a nil value" : e.Message);
  374. }
  375. }
  376. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  377. static int get_fastBloomShader(IntPtr L)
  378. {
  379. object o = null;
  380. try
  381. {
  382. o = ToLua.ToObject(L, 1);
  383. PostEffect obj = (PostEffect)o;
  384. UnityEngine.Shader ret = obj.fastBloomShader;
  385. ToLua.Push(L, ret);
  386. return 1;
  387. }
  388. catch(Exception e)
  389. {
  390. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fastBloomShader on a nil value" : e.Message);
  391. }
  392. }
  393. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  394. static int get_dualBloomShader(IntPtr L)
  395. {
  396. object o = null;
  397. try
  398. {
  399. o = ToLua.ToObject(L, 1);
  400. PostEffect obj = (PostEffect)o;
  401. UnityEngine.Shader ret = obj.dualBloomShader;
  402. ToLua.Push(L, ret);
  403. return 1;
  404. }
  405. catch(Exception e)
  406. {
  407. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dualBloomShader on a nil value" : e.Message);
  408. }
  409. }
  410. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  411. static int get_use_dual_bloom(IntPtr L)
  412. {
  413. object o = null;
  414. try
  415. {
  416. o = ToLua.ToObject(L, 1);
  417. PostEffect obj = (PostEffect)o;
  418. bool ret = obj.use_dual_bloom;
  419. LuaDLL.lua_pushboolean(L, ret);
  420. return 1;
  421. }
  422. catch(Exception e)
  423. {
  424. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_dual_bloom on a nil value" : e.Message);
  425. }
  426. }
  427. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  428. static int get_EnableBlur(IntPtr L)
  429. {
  430. object o = null;
  431. try
  432. {
  433. o = ToLua.ToObject(L, 1);
  434. PostEffect obj = (PostEffect)o;
  435. bool ret = obj.EnableBlur;
  436. LuaDLL.lua_pushboolean(L, ret);
  437. return 1;
  438. }
  439. catch(Exception e)
  440. {
  441. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EnableBlur on a nil value" : e.Message);
  442. }
  443. }
  444. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  445. static int get_use_dual_blur(IntPtr L)
  446. {
  447. object o = null;
  448. try
  449. {
  450. o = ToLua.ToObject(L, 1);
  451. PostEffect obj = (PostEffect)o;
  452. bool ret = obj.use_dual_blur;
  453. LuaDLL.lua_pushboolean(L, ret);
  454. return 1;
  455. }
  456. catch(Exception e)
  457. {
  458. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_dual_blur on a nil value" : e.Message);
  459. }
  460. }
  461. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  462. static int get_blurShader(IntPtr L)
  463. {
  464. object o = null;
  465. try
  466. {
  467. o = ToLua.ToObject(L, 1);
  468. PostEffect obj = (PostEffect)o;
  469. UnityEngine.Shader ret = obj.blurShader;
  470. ToLua.Push(L, ret);
  471. return 1;
  472. }
  473. catch(Exception e)
  474. {
  475. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurShader on a nil value" : e.Message);
  476. }
  477. }
  478. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  479. static int get_render_blur_effect(IntPtr L)
  480. {
  481. object o = null;
  482. try
  483. {
  484. o = ToLua.ToObject(L, 1);
  485. PostEffect obj = (PostEffect)o;
  486. bool ret = obj.render_blur_effect;
  487. LuaDLL.lua_pushboolean(L, ret);
  488. return 1;
  489. }
  490. catch(Exception e)
  491. {
  492. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index render_blur_effect on a nil value" : e.Message);
  493. }
  494. }
  495. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  496. static int get_get_screen_shot(IntPtr L)
  497. {
  498. object o = null;
  499. try
  500. {
  501. o = ToLua.ToObject(L, 1);
  502. PostEffect obj = (PostEffect)o;
  503. bool ret = obj.get_screen_shot;
  504. LuaDLL.lua_pushboolean(L, ret);
  505. return 1;
  506. }
  507. catch(Exception e)
  508. {
  509. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index get_screen_shot on a nil value" : e.Message);
  510. }
  511. }
  512. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  513. static int get_blurSpread(IntPtr L)
  514. {
  515. object o = null;
  516. try
  517. {
  518. o = ToLua.ToObject(L, 1);
  519. PostEffect obj = (PostEffect)o;
  520. float ret = obj.blurSpread;
  521. LuaDLL.lua_pushnumber(L, ret);
  522. return 1;
  523. }
  524. catch(Exception e)
  525. {
  526. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurSpread on a nil value" : e.Message);
  527. }
  528. }
  529. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  530. static int get_blur_amount(IntPtr L)
  531. {
  532. object o = null;
  533. try
  534. {
  535. o = ToLua.ToObject(L, 1);
  536. PostEffect obj = (PostEffect)o;
  537. float ret = obj.blur_amount;
  538. LuaDLL.lua_pushnumber(L, ret);
  539. return 1;
  540. }
  541. catch(Exception e)
  542. {
  543. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blur_amount on a nil value" : e.Message);
  544. }
  545. }
  546. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  547. static int get_recurveMaxNum(IntPtr L)
  548. {
  549. object o = null;
  550. try
  551. {
  552. o = ToLua.ToObject(L, 1);
  553. PostEffect obj = (PostEffect)o;
  554. int ret = obj.recurveMaxNum;
  555. LuaDLL.lua_pushinteger(L, ret);
  556. return 1;
  557. }
  558. catch(Exception e)
  559. {
  560. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index recurveMaxNum on a nil value" : e.Message);
  561. }
  562. }
  563. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  564. static int get_downSample(IntPtr L)
  565. {
  566. object o = null;
  567. try
  568. {
  569. o = ToLua.ToObject(L, 1);
  570. PostEffect obj = (PostEffect)o;
  571. int ret = obj.downSample;
  572. LuaDLL.lua_pushinteger(L, ret);
  573. return 1;
  574. }
  575. catch(Exception e)
  576. {
  577. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index downSample on a nil value" : e.Message);
  578. }
  579. }
  580. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  581. static int get_dualBlurShader(IntPtr L)
  582. {
  583. object o = null;
  584. try
  585. {
  586. o = ToLua.ToObject(L, 1);
  587. PostEffect obj = (PostEffect)o;
  588. UnityEngine.Shader ret = obj.dualBlurShader;
  589. ToLua.Push(L, ret);
  590. return 1;
  591. }
  592. catch(Exception e)
  593. {
  594. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dualBlurShader on a nil value" : e.Message);
  595. }
  596. }
  597. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  598. static int set_EnableFXAA(IntPtr L)
  599. {
  600. object o = null;
  601. try
  602. {
  603. o = ToLua.ToObject(L, 1);
  604. PostEffect obj = (PostEffect)o;
  605. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  606. obj.EnableFXAA = arg0;
  607. return 0;
  608. }
  609. catch(Exception e)
  610. {
  611. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EnableFXAA on a nil value" : e.Message);
  612. }
  613. }
  614. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  615. static int set_contrastThreshold(IntPtr L)
  616. {
  617. object o = null;
  618. try
  619. {
  620. o = ToLua.ToObject(L, 1);
  621. PostEffect obj = (PostEffect)o;
  622. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  623. obj.contrastThreshold = arg0;
  624. return 0;
  625. }
  626. catch(Exception e)
  627. {
  628. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index contrastThreshold on a nil value" : e.Message);
  629. }
  630. }
  631. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  632. static int set_relativeThreshold(IntPtr L)
  633. {
  634. object o = null;
  635. try
  636. {
  637. o = ToLua.ToObject(L, 1);
  638. PostEffect obj = (PostEffect)o;
  639. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  640. obj.relativeThreshold = arg0;
  641. return 0;
  642. }
  643. catch(Exception e)
  644. {
  645. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index relativeThreshold on a nil value" : e.Message);
  646. }
  647. }
  648. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  649. static int set_subpixelBlending(IntPtr L)
  650. {
  651. object o = null;
  652. try
  653. {
  654. o = ToLua.ToObject(L, 1);
  655. PostEffect obj = (PostEffect)o;
  656. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  657. obj.subpixelBlending = arg0;
  658. return 0;
  659. }
  660. catch(Exception e)
  661. {
  662. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index subpixelBlending on a nil value" : e.Message);
  663. }
  664. }
  665. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  666. static int set_FXAAShader(IntPtr L)
  667. {
  668. object o = null;
  669. try
  670. {
  671. o = ToLua.ToObject(L, 1);
  672. PostEffect obj = (PostEffect)o;
  673. UnityEngine.Shader arg0 = (UnityEngine.Shader)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Shader));
  674. obj.FXAAShader = arg0;
  675. return 0;
  676. }
  677. catch(Exception e)
  678. {
  679. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index FXAAShader on a nil value" : e.Message);
  680. }
  681. }
  682. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  683. static int set_lowQuality(IntPtr L)
  684. {
  685. object o = null;
  686. try
  687. {
  688. o = ToLua.ToObject(L, 1);
  689. PostEffect obj = (PostEffect)o;
  690. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  691. obj.lowQuality = arg0;
  692. return 0;
  693. }
  694. catch(Exception e)
  695. {
  696. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lowQuality on a nil value" : e.Message);
  697. }
  698. }
  699. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  700. static int set_EnableBloom(IntPtr L)
  701. {
  702. object o = null;
  703. try
  704. {
  705. o = ToLua.ToObject(L, 1);
  706. PostEffect obj = (PostEffect)o;
  707. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  708. obj.EnableBloom = arg0;
  709. return 0;
  710. }
  711. catch(Exception e)
  712. {
  713. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EnableBloom on a nil value" : e.Message);
  714. }
  715. }
  716. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  717. static int set_threshold(IntPtr L)
  718. {
  719. object o = null;
  720. try
  721. {
  722. o = ToLua.ToObject(L, 1);
  723. PostEffect obj = (PostEffect)o;
  724. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  725. obj.threshold = arg0;
  726. return 0;
  727. }
  728. catch(Exception e)
  729. {
  730. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index threshold on a nil value" : e.Message);
  731. }
  732. }
  733. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  734. static int set_intensity(IntPtr L)
  735. {
  736. object o = null;
  737. try
  738. {
  739. o = ToLua.ToObject(L, 1);
  740. PostEffect obj = (PostEffect)o;
  741. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  742. obj.intensity = arg0;
  743. return 0;
  744. }
  745. catch(Exception e)
  746. {
  747. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index intensity on a nil value" : e.Message);
  748. }
  749. }
  750. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  751. static int set_blurSize(IntPtr L)
  752. {
  753. object o = null;
  754. try
  755. {
  756. o = ToLua.ToObject(L, 1);
  757. PostEffect obj = (PostEffect)o;
  758. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  759. obj.blurSize = arg0;
  760. return 0;
  761. }
  762. catch(Exception e)
  763. {
  764. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurSize on a nil value" : e.Message);
  765. }
  766. }
  767. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  768. static int set_blurIterations(IntPtr L)
  769. {
  770. object o = null;
  771. try
  772. {
  773. o = ToLua.ToObject(L, 1);
  774. PostEffect obj = (PostEffect)o;
  775. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  776. obj.blurIterations = arg0;
  777. return 0;
  778. }
  779. catch(Exception e)
  780. {
  781. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurIterations on a nil value" : e.Message);
  782. }
  783. }
  784. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  785. static int set_blurType(IntPtr L)
  786. {
  787. object o = null;
  788. try
  789. {
  790. o = ToLua.ToObject(L, 1);
  791. PostEffect obj = (PostEffect)o;
  792. BlurType arg0 = (BlurType)ToLua.CheckObject(L, 2, typeof(BlurType));
  793. obj.blurType = arg0;
  794. return 0;
  795. }
  796. catch(Exception e)
  797. {
  798. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurType on a nil value" : e.Message);
  799. }
  800. }
  801. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  802. static int set_fastBloomShader(IntPtr L)
  803. {
  804. object o = null;
  805. try
  806. {
  807. o = ToLua.ToObject(L, 1);
  808. PostEffect obj = (PostEffect)o;
  809. UnityEngine.Shader arg0 = (UnityEngine.Shader)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Shader));
  810. obj.fastBloomShader = arg0;
  811. return 0;
  812. }
  813. catch(Exception e)
  814. {
  815. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fastBloomShader on a nil value" : e.Message);
  816. }
  817. }
  818. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  819. static int set_dualBloomShader(IntPtr L)
  820. {
  821. object o = null;
  822. try
  823. {
  824. o = ToLua.ToObject(L, 1);
  825. PostEffect obj = (PostEffect)o;
  826. UnityEngine.Shader arg0 = (UnityEngine.Shader)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Shader));
  827. obj.dualBloomShader = arg0;
  828. return 0;
  829. }
  830. catch(Exception e)
  831. {
  832. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dualBloomShader on a nil value" : e.Message);
  833. }
  834. }
  835. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  836. static int set_use_dual_bloom(IntPtr L)
  837. {
  838. object o = null;
  839. try
  840. {
  841. o = ToLua.ToObject(L, 1);
  842. PostEffect obj = (PostEffect)o;
  843. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  844. obj.use_dual_bloom = arg0;
  845. return 0;
  846. }
  847. catch(Exception e)
  848. {
  849. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_dual_bloom on a nil value" : e.Message);
  850. }
  851. }
  852. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  853. static int set_EnableBlur(IntPtr L)
  854. {
  855. object o = null;
  856. try
  857. {
  858. o = ToLua.ToObject(L, 1);
  859. PostEffect obj = (PostEffect)o;
  860. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  861. obj.EnableBlur = arg0;
  862. return 0;
  863. }
  864. catch(Exception e)
  865. {
  866. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EnableBlur on a nil value" : e.Message);
  867. }
  868. }
  869. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  870. static int set_use_dual_blur(IntPtr L)
  871. {
  872. object o = null;
  873. try
  874. {
  875. o = ToLua.ToObject(L, 1);
  876. PostEffect obj = (PostEffect)o;
  877. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  878. obj.use_dual_blur = arg0;
  879. return 0;
  880. }
  881. catch(Exception e)
  882. {
  883. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_dual_blur on a nil value" : e.Message);
  884. }
  885. }
  886. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  887. static int set_blurShader(IntPtr L)
  888. {
  889. object o = null;
  890. try
  891. {
  892. o = ToLua.ToObject(L, 1);
  893. PostEffect obj = (PostEffect)o;
  894. UnityEngine.Shader arg0 = (UnityEngine.Shader)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Shader));
  895. obj.blurShader = arg0;
  896. return 0;
  897. }
  898. catch(Exception e)
  899. {
  900. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurShader on a nil value" : e.Message);
  901. }
  902. }
  903. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  904. static int set_render_blur_effect(IntPtr L)
  905. {
  906. object o = null;
  907. try
  908. {
  909. o = ToLua.ToObject(L, 1);
  910. PostEffect obj = (PostEffect)o;
  911. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  912. obj.render_blur_effect = arg0;
  913. return 0;
  914. }
  915. catch(Exception e)
  916. {
  917. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index render_blur_effect on a nil value" : e.Message);
  918. }
  919. }
  920. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  921. static int set_get_screen_shot(IntPtr L)
  922. {
  923. object o = null;
  924. try
  925. {
  926. o = ToLua.ToObject(L, 1);
  927. PostEffect obj = (PostEffect)o;
  928. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  929. obj.get_screen_shot = arg0;
  930. return 0;
  931. }
  932. catch(Exception e)
  933. {
  934. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index get_screen_shot on a nil value" : e.Message);
  935. }
  936. }
  937. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  938. static int set_blurSpread(IntPtr L)
  939. {
  940. object o = null;
  941. try
  942. {
  943. o = ToLua.ToObject(L, 1);
  944. PostEffect obj = (PostEffect)o;
  945. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  946. obj.blurSpread = arg0;
  947. return 0;
  948. }
  949. catch(Exception e)
  950. {
  951. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurSpread on a nil value" : e.Message);
  952. }
  953. }
  954. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  955. static int set_blur_amount(IntPtr L)
  956. {
  957. object o = null;
  958. try
  959. {
  960. o = ToLua.ToObject(L, 1);
  961. PostEffect obj = (PostEffect)o;
  962. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  963. obj.blur_amount = arg0;
  964. return 0;
  965. }
  966. catch(Exception e)
  967. {
  968. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blur_amount on a nil value" : e.Message);
  969. }
  970. }
  971. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  972. static int set_recurveMaxNum(IntPtr L)
  973. {
  974. object o = null;
  975. try
  976. {
  977. o = ToLua.ToObject(L, 1);
  978. PostEffect obj = (PostEffect)o;
  979. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  980. obj.recurveMaxNum = arg0;
  981. return 0;
  982. }
  983. catch(Exception e)
  984. {
  985. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index recurveMaxNum on a nil value" : e.Message);
  986. }
  987. }
  988. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  989. static int set_downSample(IntPtr L)
  990. {
  991. object o = null;
  992. try
  993. {
  994. o = ToLua.ToObject(L, 1);
  995. PostEffect obj = (PostEffect)o;
  996. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  997. obj.downSample = arg0;
  998. return 0;
  999. }
  1000. catch(Exception e)
  1001. {
  1002. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index downSample on a nil value" : e.Message);
  1003. }
  1004. }
  1005. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1006. static int set_dualBlurShader(IntPtr L)
  1007. {
  1008. object o = null;
  1009. try
  1010. {
  1011. o = ToLua.ToObject(L, 1);
  1012. PostEffect obj = (PostEffect)o;
  1013. UnityEngine.Shader arg0 = (UnityEngine.Shader)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Shader));
  1014. obj.dualBlurShader = arg0;
  1015. return 0;
  1016. }
  1017. catch(Exception e)
  1018. {
  1019. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dualBlurShader on a nil value" : e.Message);
  1020. }
  1021. }
  1022. }