ppegodrays.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. //!GodRays - PostProcessEffectType.GodRays
  2. class PPEGodRays: PPEClassBase
  3. {
  4. static const int PARAM_INTENSITY = 0;
  5. static const int PARAM_SUNVISIBLE = 1;
  6. static const int PARAM_OVERBURNINTENSITY = 2;
  7. static const int PARAM_OVERBURNSTART = 3;
  8. static const int PARAM_OVERBURNEND = 4;
  9. //static const int PARAM_SUNMASKMAT = 5; //Warning, not to be used until DECLARE_RESOURCE_NAME solution is implemented!
  10. static const int L_0_GLASSES = 100;
  11. override int GetPostProcessEffectID()
  12. {
  13. return PostProcessEffectType.GodRays;
  14. }
  15. override string GetDefaultMaterialPath()
  16. {
  17. return "Graphics/Materials/postprocess/godrayssun";
  18. }
  19. override void RegisterMaterialParameters()
  20. {
  21. RegisterParameterScalarFloat(PARAM_INTENSITY,"Intensity",0.8,0,1);
  22. RegisterParameterScalarFloat(PARAM_SUNVISIBLE,"SunVisible",1.0,0,1);
  23. RegisterParameterScalarFloat(PARAM_OVERBURNINTENSITY,"OverBurnIntensity",0.25,0,1);
  24. RegisterParameterScalarFloat(PARAM_OVERBURNSTART,"OverBurnStart",0.025,0,1);
  25. RegisterParameterScalarFloat(PARAM_OVERBURNEND,"OverBurnEnd",0.175,0,1);
  26. //TODO
  27. //SunMaskMat - DECLARE_RESOURCE_NAME
  28. }
  29. }