File size: 1,450 Bytes
645859a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import * as THREE from 'three';
export interface WireframeMaterialProps extends THREE.ShaderMaterialParameters {
    fillOpacity?: number;
    fillMix?: number;
    strokeOpacity?: number;
    thickness?: number;
    colorBackfaces?: boolean;
    dashInvert?: boolean;
    dash?: boolean;
    dashRepeats?: number;
    dashLength?: number;
    squeeze?: boolean;
    squeezeMin?: number;
    squeezeMax?: number;
    stroke?: THREE.ColorRepresentation;
    backfaceStroke?: THREE.ColorRepresentation;
    fill?: THREE.ColorRepresentation;
}
export declare const WireframeMaterialShaders: {
    uniforms: {
        strokeOpacity: number;
        fillOpacity: number;
        fillMix: number;
        thickness: number;
        colorBackfaces: boolean;
        dashInvert: boolean;
        dash: boolean;
        dashRepeats: number;
        dashLength: number;
        squeeze: boolean;
        squeezeMin: number;
        squeezeMax: number;
        stroke: THREE.Color;
        backfaceStroke: THREE.Color;
        fill: THREE.Color;
    };
    vertex: string;
    fragment: string;
};
export declare const WireframeMaterial: typeof THREE.ShaderMaterial & {
    key: string;
};
export declare function setWireframeOverride(material: THREE.Material, uniforms: {
    [key: string]: THREE.IUniform<any>;
}): void;
export declare function useWireframeUniforms(uniforms: {
    [key: string]: THREE.IUniform<any>;
}, props: WireframeMaterialProps): void;