ccpwgl2 icon indicating copy to clipboard operation
ccpwgl2 copied to clipboard

Feature / Dust, dirt and aging

Open cppctamber opened this issue 4 years ago • 1 comments

The tranquility and sisi v5 gles shaders never supported dust or dirt functionality (that I saw). At one stage (some time around 2015?) the Chaos server contained a quadv5.sm_hi shader that did have the functionality although it wasn't working, but I was able to fix it. Unfortunately this file was lost when I destroyed the original caldariprimeponyclub website (oops!).

  • [x] Old shader found :|
  • [ ] Feature added manually

cppctamber avatar Aug 27 '21 08:08 cppctamber

function calculateAge(weeksSinceCleaned)
{
    return 0.7 - 1.0 / (Math.pow(weeksSinceCleaned, 0.65) + (1.0 / 2.7));
};

function setAge(wrapped, dirtLevel)
{
    wrapped._perObjectData.perObjectPSData.data[2] = dirtLevel;
};

cppctamber avatar Aug 27 '21 08:08 cppctamber