Skip to content

if the first parameter is text mesh #6

@royJang

Description

@royJang
var geometry = new THREE.TextGeometry( 'lol', {
       font : ''   // any fonts
});
var material = new THREE.MeshBasicMaterial({ color : 0x000000 });
var text = new THREE.Mesh(  geometry, material  );

var decalGeometry = new THREE.DecalGeometry(
       text,
       p,
       r,
       new THREE.Vector3( 50, 50, 10 ),
       new THREE.Vector3( 1, 1, 1 )
);

when the code running:
Uncaught TypeError: Cannot read property 'clone' of undefined

what should i do ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions