• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 193 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0036 秒)

161. LayaAir3D 导出和使用U3D粒子特效 [ 38%]

...imation -> Enabled UV Channels -> Nothing, Everything, UV1, UV2, UV3 Lights Trails 2016-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 9 个回复 cuixueying 赞同来自: wangchuanjin 谢谢! 2016-12-19 1 1 分...

来源: Laya_社区 发布时间: 20161219

162. 灯光-方向光 [ 38%]

...e, false); camera.addComponent(CameraMoveScript); //方向光 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 grid = scene.addChild(Laya.Sprite3D.load("../../res/th...

来源: Laya_示例 发布时间: 20240930

163. 照相机-正交相机 [ 38%]

...影垂直矩阵尺寸 camera.orthographicVerticalSize = 10; var directionLight = scene.addChild(new Laya.DirectionLight()); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () {...

来源: Laya_示例 发布时间: 20240930

164. 分享水波一个shader [ 37%]

...N precision highp float; #else precision mediump float; #endif  #include "Lighting.glsl";   uniform sampler2D u_MainTex; uniform sampler2D u_NoiseTex; uniform vec3 u_CameraPos; uniform vec3 u_AmbientColor; uniform DirectionLight u_DirectionLight; uniform float u_Time;  varying vec2 v_textcoord; v...

来源: Laya_社区 发布时间: 20190923

165. 自定义shader-地形shader [ 37%]

...es/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMaterial.setLightMapTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/Assets/Scenes/Level/XunLongShi/Lightmap-0_comp_light.png")); customMaterial.setDiffuseTexture1(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/te...

来源: Laya_示例 发布时间: 20240930

166. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 37%]

... 'u_MainCol': Laya.Shader3D.PERIOD_MATERIAL }; var vs:string = ` #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec3 a_Normal; attribute vec2 a_Texcood0; uniform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; varying vec3 v_Normal; varying vec2 uv; varying vec4 worldPos; void main() { gl...

来源: Laya_社区 发布时间: 20190814

167. 照相机-3D空间转2D空间 [ 37%]

...a.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(La...

来源: Laya_示例 发布时间: 20240930

168. 灯光-点光 [ 37%]

... true, false); camera.addComponent(CameraMoveScript); //点光源 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...

来源: Laya_示例 发布时间: 20240930

169. 材质-BlinnPhong-漫反射贴图 [ 36%]

...ue, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureC...

来源: Laya_示例 发布时间: 20240930

170. 灯光-聚光 [ 35%]

..., true, false); camera.addComponent(CameraMoveScript); //聚光灯 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.att...

来源: Laya_示例 发布时间: 20240930