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

大约有 201 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)

181. 关联shader的uniform(JavaScript-3D基础(JS)-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

182. 关联shader的uniform(TypeScript-3D基础(TS)-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%]

...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 textureCube = Laya.TextureCube.load("../../res/threeDimen/skyB...

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

184. 材质-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_示例 发布时间: 20251130

185. 关联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

186. 材质-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_示例 发布时间: 20251130

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

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

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

188. 高级应用-实时阴影 [ 32%]

...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_示例 发布时间: 20251130

189. 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

190. 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