firtoz/react-three-renderer

Populate all material properties

Open

#48 ouverte le 11 mars 2016

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)JavaScript (164 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (1 498 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur