[0]请问球体材质如何向内渲染
//建了一个球sphere1
let sphere1 = this.newScene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(2, 30, 30)));
//给了一个贴图
sphere1.meshRenderer.material = this.mat1;
如果相机在球外看是正常的
问题是我希望相机在球内,就是相机坐标是(0,0,0),但材质渲染是单面向外的,请问怎么可以渲染向内????
let sphere1 = this.newScene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(2, 30, 30)));
//给了一个贴图
sphere1.meshRenderer.material = this.mat1;
如果相机在球外看是正常的
问题是我希望相机在球内,就是相机坐标是(0,0,0),但材质渲染是单面向外的,请问怎么可以渲染向内????
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
coder
赞同来自: