firtoz/react-three-renderer

Populate all material properties

Open

#48 opened on Mar 11, 2016

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (1,498 stars) (164 forks)batch import
enhancementhelp wanted

Description

  • 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.

Contributor guide