1. 06 8月, 2012 1 次提交
  2. 26 6月, 2012 1 次提交
  3. 31 3月, 2011 1 次提交
  4. 28 2月, 2011 2 次提交
  5. 18 2月, 2011 1 次提交
    • A
      A lot of bugfixing and refactoring. · 2ecbe2de
      alteredq 提交于
      - getters/setters are no more in Vector3
        - object hierarchies thus don't use "isDirty"
        - this was completely killing performance for anything that was touching a lot of Vector3 like creation of meshes and dynamic buffers
        - even without this, performance of hierarchies went up (a lot)
      
      - objects do not get passed renderer anymore
        - camera was almost also removed, but this is useful for LOD (though there may be some cleaner way to do this?)
      
      - material ids are now unified, this makes "geometry.sortFacesByMaterial" faster (thus scene init / GUI blocking is shorter)
      
      - all WebGL examples should work now (render-to-texture has weird lights and in some camera control feels different)
      
      - CanvasRender still broken, despite many efforts :(
         - currently only points and lines work, faces don't show up. I think this may need assistance from mrdoob.
      2ecbe2de
  6. 12 2月, 2011 1 次提交
    • A
      Added "depth_test" parameter to materials. · ad51a48f
      alteredq 提交于
      This is to be able to control depth buffer writing / testing on per geometry chunk level (before it was possible just to hack it on per scene level via exposed GL context).
      
      Disabling depth test is useful for example for additively blended particles, handling of transparency or for having background textured quad.
      
      Another option would be to have it on per object level, but then this could prevent different handling of objects with both transparent and opaque parts.
      
      Also in this commit:
      
      - more progress towards mesh vertex colors
      - less matrix multiplications in render call
      - fixed ugly bug in doubleSided / flipSided handling
      - cleanup of materials
          - added a lot of missing stuff in debug strings and parameters handlers
          - normal and depth materials now have opacity parameter
          - wrote comments for non-obvious things
      ad51a48f
  7. 25 12月, 2010 1 次提交
  8. 17 11月, 2010 2 次提交
    • M
      Removed alpha component from the Color class · 51f91fdd
      Mr.doob 提交于
      GouraudShading and PhongShading ⟶ SmoothShading
      51f91fdd
    • A
      Added support to "shading" materials parameter in WebGLRenderer. · 3d370891
      alteredq 提交于
      This is actually tricky due to multimaterials and vertex normals.
      
      The practical effects of "shading" parameter in WebGLRenderer are currently following:
      
      - if your model has vertex normals, now you can "dumb down" its shading by specifying THREE.FlatShading for MeshLambertMaterial and MeshPhongMaterial
      - if your model has only face normals, it will always have just flat shading, no matter which shading you set, no escape from this
      - if your model has multiple materials, smooth shading always "wins", meaning if there is at least one smooth shaded material in multimaterial group, all other materials in this group will be also smooth shaded (this is solvable by having multiple normal buffers, but seems wasteful, at least for the moment, till there are no practical use cases)
      
      Currently implemented shading / material combinations:
      
        - MeshNormalMaterial: FlatShading [default], GouradShading
        - MeshDepthMaterial:  no shading parameter in material, uses own specific shading
        - MeshBasicMaterial: no shading parameter in material, uses own specific shading
        - MeshLambertMaterial: FlatShading, GouraudShading [default]
        - MeshPhongMaterial: FlatShading, PhongShading [default]
      3d370891
  9. 16 11月, 2010 1 次提交
  10. 13 11月, 2010 1 次提交
  11. 06 11月, 2010 1 次提交
  12. 03 9月, 2010 1 次提交
  13. 12 7月, 2010 1 次提交
  14. 20 6月, 2010 1 次提交
  15. 11 6月, 2010 1 次提交
  16. 10 6月, 2010 1 次提交
  17. 07 6月, 2010 1 次提交
  18. 06 6月, 2010 1 次提交
    • M
      + Added Line Object · e98397cb
      Mr.doob 提交于
      + Workaround for WebKit not supporting rgba() in SVG yet
      + Aesthetic changes on the readme file
      e98397cb
  19. 16 5月, 2010 2 次提交
    • M
      Credit where credit is due. · 2a334e08
      Mr.doob 提交于
      2a334e08
    • M
      Removed Class.js dependency · a6e98d7e
      Mr.doob 提交于
      Added THREE namespace
      Camera.x -> Camera.position.x
      Camera.target.x -> Camera.target.position.x
      ColorMaterial -> ColorFillMaterial
      FaceColorMaterial -> FaceColorFillMaterial
      Materials are now multipass (use array)
      Added ColorStrokeMaterial and FaceColorStrokeMaterial
      geometry.faces.a are now indexes instead of links 
      a6e98d7e