大约有 18 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0026 秒)
...u_NoiseTex; uniform vec3 u_CameraPos; uniform vec3 u_AmbientColor; uniform DirectionLight u_DirectionLight; uniform float u_Time; varying vec2 v_textcoord; varying vec3 v_normal; varying vec4 v_wpos; void main() { float _NoiseSpeedX = 1.0; float _NoiseSpeedY = 1.0; float _NoiseScaleX = 0.2; float ...
来源: Laya_社区 发布时间: 20190923
3D灯光阴影无效 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.7, 0.6, 0.6); directionLight.specularColor = new Vector3(1.0, 1.0, 0.9); directionLight.diffuseColor = new Vector3(1, 1, 1); directionLight.tr...
来源: Laya_社区 发布时间: 20170617
...角度不对的原因 菜鸟注意 ts 1.4 添加一盏灯光 var directionLight =scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.ambientColor = new Laya.Vector3(0.7, 0.6, 0.6); directionLight.specularColor = new Lay...
来源: Laya_社区 发布时间: 20161012
...是场景中没有光照,物体的环境光颜色是不会显示的! var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffu...
来源: Laya_社区 发布时间: 20170319
...裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.ambientColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor = new Laya....
来源: Laya_社区 发布时间: 20180108
...3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; i...
来源: Laya_社区 发布时间: 20170331
...ue; camera.orthographicVerticalSize = 15; this.mainCamera = camera; // 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); scene.ambientColor = new Laya.Vector3(0.0, ...
来源: Laya_社区 发布时间: 20180126
...); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var directionLight = new Laya.DirectionLight(); this.scene.addChild(directionLight); //设置灯光方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transfor...
来源: Laya_社区 发布时间: 20191209
...除) | 变量名 | 描述 | | -------------------------- | ------ | | u_DirectionLight.color | 平行光的颜色 | | u_DirectionLight.direction | 平行光的方向 | | u_DirationLightCount | 平行光的数量 | > 点光相关(老版本,逐步会去除) | 变量名 | 描述 | | -----------...
来源: Laya2.0_文档 发布时间: 20210715
...除) | 变量名 | 描述 | | -------------------------- | ------ | | u_DirectionLight.color | 平行光的颜色 | | u_DirectionLight.direction | 平行光的方向 | | u_DirationLightCount | 平行光的数量 | > 点光相关(老版本,逐步会去除) | 变量名 | 描述 | | -----------...
来源: Laya2.0_文档 发布时间: 20210715