Crystal
Diamond-like crystal lens with faceted refraction.
Props
Prop
Details
center{x: number, y: number}Default:
{"x":0.5,"y":0.5}Center position of the crystal shape
center{x: number, y: number}Default: {"x":0.5,"y":0.5}Center position of the crystal shape
scalenumberDefault:
1Scale of the crystal shape (1 = default size)
scalenumberDefault: 1Scale of the crystal shape (1 = default size)
cutoutbooleanDefault:
falseCut out alpha outside the crystal shape
cutoutbooleanDefault: falseCut out alpha outside the crystal shape
refractionnumberDefault:
0.5How strongly the crystal refracts content beneath
refractionnumberDefault: 0.5How strongly the crystal refracts content beneath
dispersionnumberDefault:
0.5Prismatic rainbow dispersion — splits light into spectral colors
dispersionnumberDefault: 0.5Prismatic rainbow dispersion — splits light into spectral colors
facetsnumberDefault:
5Symmetry order — how many times the facet pattern repeats around the center
facetsnumberDefault: 5Symmetry order — how many times the facet pattern repeats around the center
fresnelnumberDefault:
0.05Fresnel rim glow intensity around the crystal boundary
fresnelnumberDefault: 0.05Fresnel rim glow intensity around the crystal boundary
fresnelSoftnessnumberDefault:
1Fresnel rim width — higher values spread the glow further inward
fresnelSoftnessnumberDefault: 1Fresnel rim width — higher values spread the glow further inward
fresnelColorstringDefault:
#ffffffColor of the fresnel rim glow
fresnelColorstringDefault: #ffffffColor of the fresnel rim glow
edgeSoftnessnumberDefault:
0Softness of the crystal boundary edge
edgeSoftnessnumberDefault: 0Softness of the crystal boundary edge
innerZoomnumberDefault:
1.5Magnification of content seen through the crystal
innerZoomnumberDefault: 1.5Magnification of content seen through the crystal
lightAnglenumberDefault:
270Light direction angle in degrees
lightAnglenumberDefault: 270Light direction angle in degrees
highlightsnumberDefault:
0.5Additive brightness on light-facing facets — never darkens
highlightsnumberDefault: 0.5Additive brightness on light-facing facets — never darkens
shadowsnumberDefault:
0.3Darkening on shadow-facing facets — never brightens
shadowsnumberDefault: 0.3Darkening on shadow-facing facets — never brightens
brightnessnumberDefault:
1.2Overall crystal brightness — higher values push facets toward brilliant white
brightnessnumberDefault: 1.2Overall crystal brightness — higher values push facets toward brilliant white
tintColorstringDefault:
#e8e0ffCrystal body tint color
tintColorstringDefault: #e8e0ffCrystal body tint color
tintIntensitynumberDefault:
0How much tint color is applied to the crystal interior
tintIntensitynumberDefault: 0How much tint color is applied to the crystal interior
tintPreserveLuminositybooleanDefault:
truePreserve original brightness when tinting
tintPreserveLuminositybooleanDefault: truePreserve original brightness when tinting
shapeShapeConfigDefault:
polygonSDFShape to render — choose from 11 built-in analytical shapes or supply a custom SDF. See the Shape Effects guide for all available shapes and their options.
shapeShapeConfigDefault: polygonSDFShape to render — choose from 11 built-in analytical shapes or supply a custom SDF. See the Shape Effects guide for all available shapes and their options.
shapeSdfUrlstringDefault:
""URL to a pre-generated SDF `.bin` file — when non-empty, activates SVG mode and triggers a shader recompile. See the Shape Effects guide for how to generate an SDF from an SVG.
shapeSdfUrlstringDefault: ""URL to a pre-generated SDF `.bin` file — when non-empty, activates SVG mode and triggers a shader recompile. See the Shape Effects guide for how to generate an SDF from an SVG.