Replies: 1 comment
-
You can use local lighting environments.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, sir.
let light = new PIXI3D.Light()
light.type = "directional";
light.rotationQuaternion.setEulerAngles(0, 180, 0);
PIXI3D.LightingEnvironment.main.lights.push(light);
PIXI3D.Camera.main.orthographic = true;
let mesh;
mesh = StageIns.addChild(PIXI3D.Mesh3D.createSphere())
mesh.material.baseColorTexture = PIXI.Texture.from("101.png");
mesh = StageIns.addChild(PIXI3D.Mesh3D.createSphere())
mesh.material.baseColorTexture = PIXI.Texture.from("101.png");
mesh.position.set(-3,0,0);
mesh = StageIns.addChild(PIXI3D.Mesh3D.createSphere())
mesh.material.baseColorTexture = PIXI.Texture.from("101.png");
mesh.position.set(3,0,0);
In orthographic camera mode
hwo to let the left ball and right ball same as the middle ball? the light effect
Beta Was this translation helpful? Give feedback.
All reactions