Organize several knowledge points encountered in three.js learning

1. The material setting lineWidth property in three.js is invalid

The reason is that this attribute is not supported in the WebGLRenderer renderer, only the CanvasRenderer renderer can support this attribute

2. The lookat of the camera represents a direction, not a point

3. After modifying the camera properties, you need to call the camera.updateProjectionMatrix() method to update

4. Texture loading class ImageUtils 

A class THREE.TextureLoader() that loads different image formats

5. Repeated way of texture map

THREE.RepeatWrapping = 1000; simple repeat

THREE.ClampToEdgeWrappiing = 1001; edge stretching

THREE.MirroredRepeatWrapping = 1002; mirrored repeat

Guess you like

Origin blog.csdn.net/workhard0905/article/details/120849731