pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.45k stars 290 forks source link

Change material reflectivity #111

Closed LauraPiccolo closed 2 years ago

LauraPiccolo commented 2 years ago

Hi, How can I change the material reflectivity of my model? Putting material-color on my Mesh elements works to change the color, but material-reflectivity doesn't affect the object.

Sorry I am not super familiar with Three. Any help would be appreciated :)

LauraPiccolo commented 2 years ago

Okay I just understood that reflectivity is actually not a valid material property. How can I achieve that then?

drcmda commented 2 years ago

material-roughness={1} // diffused material-roughness={0} // reflective

better consult three docs, there are a lot of props that affect surfaces

LauraPiccolo commented 2 years ago

Thank you so much!