SubSurfaceMaterial

Sub surface scattering based on this method.

This material is an implementation of the shader material using the shader in three/examples/jsm/shaders/SubsurfaceScatteringShader.js.

<Box>
  <SubSurfaceMaterial />
</Box>

Source : https://github.com/troisjs/trois/blob/master/src/materials/SubSurfaceMaterial.ts

uniform Prop

You can use the uniform prop to customize this material, e.g. :

<Box>
  <SubSurfaceMaterial :uniform="{ thicknessColor: '#ffffff' }" />
</Box>
NameDescriptionTypeDefault
diffuseMaterial color.String#ffffff
thicknessColorThickness color.String#ffffff
thicknessDistortionThickness distortion.Number0.4
thicknessAmbientAmbient thickness.Number0.01
thicknessAttenuationThickness attenuation.Number0.7
thicknessPowerThickness power.Number2
thicknessScaleThickness scaleNumber4
transparentWhether or not the material is transparent.Booleanfalse
opacityMaterial opacity.Number1
vertexColorsUse vertex colors on material.Booleanfalse