react-three-renderer icon indicating copy to clipboard operation
react-three-renderer copied to clipboard

Populate all material properties

Open toxicFork opened this issue 9 years ago • 2 comments

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

Should work similar to material.slot attribute:

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

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

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

toxicFork avatar Mar 11 '16 18:03 toxicFork

Hey @toxicFork What are the roadmap on these features? Could you by any chance point me in the direction of how I would implement the fog THREEjs feature?

frederikbrinck avatar Jan 14 '17 17:01 frederikbrinck

Hi @frederikbrinck , the good news is that all of the map properties are already in there, and the fog property too :)

toxicFork avatar Jan 21 '17 16:01 toxicFork