How to use the TangentSpaceNormalMap function from three

Find comprehensive JavaScript three.TangentSpaceNormalMap code examples handpicked from public code repositorys.

1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
material.emissiveIntensity = materialParams.emissiveIntensity === undefined ? 1.0 : materialParams.emissiveIntensity;
material.emissiveMap = materialParams.emissiveMap === undefined ? null : materialParams.emissiveMap;
material.bumpMap = materialParams.bumpMap === undefined ? null : materialParams.bumpMap;
material.bumpScale = 1;
material.normalMap = materialParams.normalMap === undefined ? null : materialParams.normalMap;
material.normalMapType = THREE.TangentSpaceNormalMap;
if ( materialParams.normalScale ) material.normalScale = materialParams.normalScale;
material.displacementMap = null;
material.displacementScale = 1;
material.displacementBias = 0;
fork icon2
star icon10
watch icon0

1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
material.emissiveIntensity = 1.0;
material.emissiveMap = materialParams.emissiveMap === undefined ? null : materialParams.emissiveMap;
material.bumpMap = materialParams.bumpMap === undefined ? null : materialParams.bumpMap;
material.bumpScale = 1;
material.normalMap = materialParams.normalMap === undefined ? null : materialParams.normalMap;
material.normalMapType = three.TangentSpaceNormalMap;
if (materialParams.normalScale)
    material.normalScale = materialParams.normalScale;
material.displacementMap = null;
material.displacementScale = 1;
fork icon2
star icon7
watch icon0

1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
class MMDToonMaterial extends three_1.ShaderMaterial {
    constructor(parameters) {
        super();
        this._matcapCombine = three_1.AddOperation;
        this.emissiveIntensity = 1.0;
        this.normalMapType = three_1.TangentSpaceNormalMap;
        this.combine = three_1.MultiplyOperation;
        this.wireframeLinecap = 'round';
        this.wireframeLinejoin = 'round';
        this.flatShading = false;
fork icon1
star icon3
watch icon0

+ 4 other calls in file

1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
material.emissiveIntensity = 1.0;
material.emissiveMap = materialParams.emissiveMap === undefined ? null : materialParams.emissiveMap;
material.bumpMap = materialParams.bumpMap === undefined ? null : materialParams.bumpMap;
material.bumpScale = 1;
material.normalMap = materialParams.normalMap === undefined ? null : materialParams.normalMap;
material.normalMapType = _three.TangentSpaceNormalMap;
if (materialParams.normalScale) material.normalScale = materialParams.normalScale;
material.displacementMap = null;
material.displacementScale = 1;
material.displacementBias = 0;
fork icon0
star icon1
watch icon0

45
46
47
48
49
50
51
52
53
54

this.bumpMap = null;
this.bumpScale = 1;

this.normalMap = null;
this.normalMapType = three.TangentSpaceNormalMap;
this.normalScale = new three.Vector2(1, 1);

this.displacementMap = null;
this.displacementScale = 1;
fork icon0
star icon0
watch icon0

+ 9 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)