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

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

181. 高级应用-实时阴影 [ 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_示例 发布时间: 20241125

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

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

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

185. 高级应用-渲染纹理 [ 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_示例 发布时间: 20241125

186. 射线检测-放置物体 [ 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_示例 发布时间: 20241125

187. 动画-旧版骨骼动画 [ 27%]

...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(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../../res/thr...

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

188. 射线检测-碰撞器混合 [ 27%]

...ore.SkinnedMeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import laya.d3.core.render.RenderState; import laya.d3.core.scene.Scene; import laya.d3.math.OrientedBoundBox; import laya.d3.math.Plane; import laya.d3.mat...

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

189. 射线检测-点击行走 [ 26%]

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

190. 模型资源设置 · LayaAir3.0文档 · LAYABOX [ 24%]

...制作的时候,就有可见性(Visibility)、摄像机(Camera)、光源(Light)属性设置,LayaAir3-IDE默认是不导入的,建议在LayaAir-IDE的场景中进行添加与设置。 当开发者存在使用模型的这些内置数据需求时,也可以通过勾选这些选项,如图2-3所...

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