ppeghost.c 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //!Ghost - PostProcessEffectType.Ghost
  2. class PPEGhost: PPEClassBase
  3. {
  4. //static const int PARAM_NOISE_TEX = 0; // changing texture not supported. Default '0xff000000'
  5. static const int PARAM_NOISE_CHANNEL_WEIGHT = 1; //!
  6. static const int PARAM_NOISE_OFFSET_X = 2; //!
  7. static const int PARAM_NOISE_OFFSET_Y = 3; //!
  8. static const int PARAM_NOISE_SCALE_X = 4; //!
  9. static const int PARAM_NOISE_SCALE_Y = 5; //!
  10. static const int PARAM_NOISE_REMAP_LO = 6; //!
  11. static const int PARAM_NOISE_REMAP_HI = 7; //!
  12. static const int PARAM_GHOST_OFFSET_X = 8; //!
  13. static const int PARAM_GHOST_OFFSET_Y = 9; //!
  14. static const int PARAM_GHOST_SCALE_X = 10; //!
  15. static const int PARAM_GHOST_SCALE_Y = 11; //!
  16. static const int PARAM_GHOST_COLOR_MOD = 12; //! RGB = per channel multiplication A = overall color curve (0=linear,1=exponential)
  17. //layering info
  18. static const int L_1_HMP = 100;
  19. static const int L_2_HMP = 100;
  20. static const int L_3_HMP = 100;
  21. static const int L_4_HMP = 100;
  22. static const int L_5_HMP = 100;
  23. static const int L_6_HMP = 100;
  24. static const int L_7_HMP = 100;
  25. static const int L_8_HMP = 100;
  26. static const int L_9_HMP = 100;
  27. override int GetPostProcessEffectID()
  28. {
  29. return PostProcessEffectType.Ghost;
  30. }
  31. override string GetDefaultMaterialPath()
  32. {
  33. return "Graphics/Materials/postprocess/ghost";
  34. }
  35. override void RegisterMaterialParameters()
  36. {
  37. //RegisterParameterTexture(PARAM_NOISE_TEX,"NoiseMap","");
  38. RegisterParameterColor(PARAM_NOISE_CHANNEL_WEIGHT,"NoiseChannelWeight",0,0,0,0);
  39. RegisterParameterScalarFloat(PARAM_NOISE_OFFSET_X, "NoiseOffsetX", 0, 0, 1);
  40. RegisterParameterScalarFloat(PARAM_NOISE_OFFSET_Y, "NoiseOffsetY", 0, 0, 1);
  41. RegisterParameterScalarFloat(PARAM_NOISE_SCALE_X, "NoiseScaleX", 1, 0.0001, 100);
  42. RegisterParameterScalarFloat(PARAM_NOISE_SCALE_Y, "NoiseScaleY", 1, 0.0001, 100);
  43. RegisterParameterColor(PARAM_NOISE_REMAP_LO,"NoiseRemapLo",0,0,0,0);
  44. RegisterParameterColor(PARAM_NOISE_REMAP_HI,"NoiseRemapHi",1,1,1,1);
  45. RegisterParameterScalarFloat(PARAM_GHOST_OFFSET_X, "GhostOffsetX", 0, -200, 200);
  46. RegisterParameterScalarFloat(PARAM_GHOST_OFFSET_Y, "GhostOffsetY", 0, -200, 200);
  47. RegisterParameterScalarFloat(PARAM_GHOST_SCALE_X, "GhostScaleX", 1, 0.0001, 1);
  48. RegisterParameterScalarFloat(PARAM_GHOST_SCALE_Y, "GhostScaleY", 1, 0.0001, 1);
  49. RegisterParameterColor(PARAM_GHOST_COLOR_MOD,"GhostColorMod",1,1,1,0.5);
  50. }
  51. }