FarazzShaikh / THREE-CustomShaderMaterial

Extend Three.js standard materials with your own shaders!
Other
846 stars 54 forks source link

Losing reflectivity of Physical Material. #56

Closed Jbmanllr closed 2 months ago

Jbmanllr commented 2 months ago

Hello, im losing reflectivity of physical material when extending it:

<CustomShaderMaterial ref={materialRef} baseMaterial={THREE.MeshPhysicalMaterial} //vertexShader={vertex} //fragmentShader={fragment} silent //uniforms={materialUniforms} {...options} />· Sorry, to be more specific, and after tests, reflectivity works, but is not controllable dynamically eg with leva like other props.

FarazzShaikh commented 2 months ago

Please provide some more details about your I pimentos. Some code would be helpful. “Reflectivity” is not a material parameter, you can control Roughness or Metalness which would affect the reflectivity

Please re-open with more details