firtoz/react-three-renderer

Populate all material properties

Open

#48 aberto em 11 de mar. de 2016

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (164 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (1.498 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador