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;
2
10
0
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;
2
7
0
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;
1
3
0
+ 4 other calls in file
GitHub: VeinKowal/veins
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;
0
1
0
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;
0
0
0
+ 9 other calls in file
three.Vector3 is the most popular function in three (22341 examples)