MeshToonMaterial 网格卡通材质

—> MeshPhongMaterial —> Material

MeshPhongMaterial 的子类, 卡通效果.

function MeshToonMaterial( parameters ) { } var geometry = new THREE.BoxGeometry(6, 6, 6), material = new THREE.MeshToonMaterial({color: 0xb180e3}), mesh = new THREE.Mesh(geometry, material); scene.add(mesh);

Attributes

type : String

Default value : 'MeshToonMaterial'
Description : 类型.

defines : String

Default value : { 'TOON': '' }
Description : 定义.

gradientMap : Texture

Default value : null
Description : 渐变映射.