1. 02 7月, 2015 3 次提交
    • B
      fixed typos to attenuation descriptions · dc1522f0
      Brian Sipple 提交于
      dc1522f0
    • R
      Merge pull request #6759 from greggman/more-useful-color · 06b3f736
      Ricardo Cabello 提交于
      mod hue and clamp saturation and luminance
      06b3f736
    • G
      mod hue and clamp saturation and lightness · a1d3430b
      Gregg Tavares 提交于
      This makes it similar to rotation. With rotation you can do things
      like
      
          someObj.rotation.x += speed * deltaTime;
      
      You don't have to keep the result in the 0 to 2*PI or -PI to PI range.
      
      Similarly by modding hue you can cycle through hues with
      
          someObj.hue += speed * deltaTime;
          someColor.setHSL(someObj.hue, 1, 0.5);
      
      That helps several use cases like tweening libaries
      
          tween.fromTo(someObj, 5, { hue: 0 }, { hue: 5 });
      
      It's also useful for random color selection from a given hue, saturation, lightness
      
          var hsl = someColor.getHSL();
          hsl.h += Math.random();
          hsl.s += Math.random() * 0.2 - 0.1;  // make it slightly more or less saturated
          someColor.setHSL(hsl.h, hsl.s, hsl.l);
      
      Also updated `THREE.ColorConverter.setHSV`
      a1d3430b
  2. 01 7月, 2015 3 次提交
  3. 30 6月, 2015 12 次提交
  4. 29 6月, 2015 3 次提交
  5. 28 6月, 2015 1 次提交
    • J
      Convert global variables to local variables · 9e64158d
      Jeremy Bernier 提交于
      This file is unnecessarily adding global variables with names like v, w, loader, etc. Polluting the global namespace is dangerous and makes everyone's code more prone to bugs.
      
      I simply added "var" declarations to convert the global variables to local variables.
      9e64158d
  6. 27 6月, 2015 4 次提交
  7. 26 6月, 2015 2 次提交
  8. 25 6月, 2015 6 次提交
  9. 24 6月, 2015 6 次提交