ppeunderwater.c 972 B

12345678910111213141516171819202122232425262728
  1. //!UnderWater - PostProcessEffectType.UnderWater
  2. class PPEUnderWater: PPEClassBase
  3. {
  4. static const int PARAM_RSINTENSITY = 0;
  5. static const int PARAM_RSPLANEDIST = 1;
  6. static const int PARAM_RSDEPTHDECREASE = 2;
  7. static const int PARAM_RSUVSCALE = 3;
  8. static const int PARAM_WATERPLANELUM = 4;
  9. override int GetPostProcessEffectID()
  10. {
  11. return PostProcessEffectType.UnderWater;
  12. }
  13. override string GetDefaultMaterialPath()
  14. {
  15. return "Graphics/Materials/postprocess/uw";
  16. }
  17. override void RegisterMaterialParameters()
  18. {
  19. RegisterParameterScalarFloat(PARAM_RSINTENSITY,"RayShaftsIntensity",0.0,-0.2,0.2);
  20. RegisterParameterScalarFloat(PARAM_RSPLANEDIST,"RayShaftsPlaneDistance",1.0,0.1,4.0);
  21. RegisterParameterScalarFloat(PARAM_RSDEPTHDECREASE,"RayShaftsDepthDecrease",2.5,1.0,100.0);
  22. RegisterParameterScalarFloat(PARAM_RSUVSCALE,"RayShaftsUVScale",2.0,0.1,10.0);
  23. RegisterParameterScalarFloat(PARAM_WATERPLANELUM,"WaterPlaneLuminance",0.05,0.001,0.5);
  24. }
  25. };