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

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

181. 材质-BlinnPhong-高光贴图 [ 34%]

..., 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); ...

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

182. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 34%]

... highp float; #else precision mediump float; #endif uniform float u_OutlineLightness; uniform vec4 u_OutlineColor; void main() { vec3 finalColor = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.v...

来源: Laya2.0_文档 发布时间: 20210715

183. 材质-BlinnPhong-法线贴图 [ 34%]

...a.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCa...

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

184. Unity转LayaAir差异说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 33%]

...。 .lani 3D动画数据文件。 .atlascfg 自动图集配置文件。 .lighting 光照贴图烘焙配置文件。 .fnt 位图字体文件。 2.2 从Unity导出资源到LayaAir 如果想将Unity项目中的资源导出到LayaAir中进行开发,需要使用“Unity资源导出插件”。 需要...

来源: Laya3.0_文档 发布时间: 20250214

185. 高级应用-实时阴影 [ 31%]

...a.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); //灯光开启阴影 directionLight.shadow = true; //可见阴影...

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

186. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 31%]

... highp float; #else precision mediump float; #endif uniform float u_OutlineLightness; uniform vec4 u_OutlineColor; void main() { vec3 finalColor = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.v...

来源: Laya2.0_文档 发布时间: 20210715

187. rigidBody.applyForce 物体不会移动 [ 31%]

...private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector3(0, 0,...

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

188. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 30%]

... highp float; #else precision mediump float; #endif uniform float u_OutlineLightness; uniform vec4 u_OutlineColor; void main() { vec3 finalColor = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.v...

来源: Laya2.0_文档 发布时间: 20210715

189. 高级应用-渲染纹理 [ 29%]

...rder = -1; renderTargetCamera.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 layaMonkey = scene.addChild(Laya.Sprite3D.load("../../...

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

190. 射线检测-放置物体 [ 28%]

...5, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new ...

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