firtoz/react-three-renderer

Populate all material properties

Open

#48 建立於 2016年3月11日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)JavaScript (1,498 star) (164 fork)batch import
enhancementhelp wanted

描述

  • precision
  • supportsVertexTextures
  • vertexColors
  • flatShading
  • skinning
  • useVertexTexture
  • morphTargets
  • morphNormals
  • doubleSided
  • flipSided
  • shadowMapEnabled
  • pointLightShadows
  • sizeAttenuation
  • logarithmicDepthBuffer
  • alphaTest
  • useFog
  • fog
  • fogExp
  • more?

Should work similar to material.slot attribute:

  • map ( default )
  • envMap ( e.g. slot={'envMap'} )
  • envMap
  • lightMap
  • aoMap
  • emissiveMap
  • bumpMap
  • normalMap
  • displacementMap
  • specularMap
  • roughnessMap
  • metalnessMap
  • alphaMap

See https://github.com/toxicFork/react-three-renderer/issues/34#issuecomment-195487070

Also will need to filter them out of rawShaderMaterial when implemented.

貢獻者指南