zoukankan      html  css  js  c++  java
  • layabox 3d 入手

    最近受到打击了,3d效果远比2d效果好。

    问题 laya3d 有正交相机没有?

    Laya.Sprite3D.load(XX.lh);   克隆Laya.Sprite3D.instantiate

    Laya.Mesh.load(XXX.lm);

    var directionLight = scene.addChild(new Laya.DirectionLight());
    directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6);
    directionLight.direction = new Laya.Vector3(0, -1.0, -1.0);

    var pointLight = scene.addChild(new Laya.PointLight());
    pointLight.color = new Laya.Vector3(0.1189446, 0.5907708, 0.7352941);
    pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0);
    pointLight.attenuation = new Laya.Vector3(0.0, 0.0, 3.0);
    pointLight.range = 3.0;

    //聚光灯
    var spotLight = scene.addChild(new Laya.SpotLight());
    spotLight.color = new Laya.Vector3(1, 1, 0);
    spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0);
    spotLight.direction = new Laya.Vector3(0.15, -1.0, 0.0);
    spotLight.attenuation = new Laya.Vector3(0.0, 0.0, 0.8);
    spotLight.range = 6.0;
    spotLight.spot = 32;

  • 相关阅读:
    迷宫寻找路径数
    136. 只出现一次的数字
    48. 旋转图像
    283. 移动零
    面试题 01.06. 字符串压缩
    位运算符
    367. 有效的完全平方数
    868. 二进制间距
    SpringAOP表达式
    Mybatis常见错误及纠错
  • 原文地址:https://www.cnblogs.com/honghong87/p/9571798.html
Copyright © 2011-2022 走看看