Interface MeshRefractionMaterialParameters

MeshRefractionMaterial parameters

MeshRefractionMaterialParameters

2024.2.23

yisky

interface MeshRefractionMaterialParameters {
    aberrationStrength?: number;
    bounces?: number;
    color?: ColorRepresentation;
    envMap: CubeTexture | Texture;
    fastChroma?: boolean;
    fresnel?: number;
    geometry: BufferGeometry<NormalBufferAttributes>;
    ior?: number;
}

Properties

aberrationStrength?: number

RGB shift intensity, can be expensive, 0.01

MeshRefractionMaterialParameters

bounces?: number

Number of ray-cast bounces, it can be expensive to have too many, 3

MeshRefractionMaterialParameters

color?: ColorRepresentation

Color, white

MeshRefractionMaterialParameters

envMap: CubeTexture | Texture

Environment map

MeshRefractionMaterialParameters

fastChroma?: boolean

If this is on it uses fewer ray casts for the RGB shift sacrificing physical accuracy, true

MeshRefractionMaterialParameters

fresnel?: number

Fresnel (strip light), 0

MeshRefractionMaterialParameters

geometry: BufferGeometry<NormalBufferAttributes>

The geometry material use

MeshRefractionMaterialParameters

ior?: number

Refraction index, 2.4

MeshRefractionMaterialParameters