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

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

101. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 63%]

... = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec2 a_Texcoord0; uniform mat4 u_MvpMatrix; uniform mat...

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

102. 关联shader的uniform(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 63%]

... = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec2 a_Texcoord0; uniform mat4 u_MvpMatrix; uniform mat...

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

103. 关于微信小游戏加载 ls和lh资源文件被认为是string而不是json对象问题 [ 63%]

...leteHandler, progressHander); 在 Laya 1.7.22 中 正常工作,但 Laya2.0.0 中,不管加载的是什么,都会变成string。 Laya2.0.0 中必须是 只能直接给 字符串作为url参数 ,才能正常工作,如下 Laya.loader.create("Res3D/testHuman.lh", completeHandler, pro...

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

104. 粒子动画透明度问题 [ 62%]

...age *= 1.0 + a_AgeAddScale;\n float normalizedAge = clamp(age / u_Duration,0.0,1.0);\n gl_Position = ComputeParticlePosition(a_Position, a_Velocity, age, normalizedAge);//计算粒子位置\n float pSize = ComputeParticleSize(a_SizeRotation.x,a_SizeRotation.y, normalizedAge);\n mat2 rotation = Compu...

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

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

... = u_OutlineColor.rgb * u_OutlineLightness; gl_FragColor = vec4(finalColor,0.0); } ``` ##### 第二个Pass使用的着色器: 顶点着色器 `outline02.vs` 代码如下: ```c++ #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec2 a_Texcoord0; uniform mat4 u_MvpMatrix; uniform mat...

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

106. 材质-物理基础渲染材质 [ 62%]

...lse camera._shaderValues.setValue(Laya.BaseCamera.HDREXPOSURE, Math.pow(2, 0.0)); scene.addChild(camera); camera.transform.translate(new Vector3(0, 0, 1.0)); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDom...

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

107. 2.0 添加场景雾之后 粒子特效离原点越远 效果越淡 [ 61%]

... #endif\n        \n  #ifdef DIFFUSEMAP\n     if(v_Discard!=0.0)\n            discard;\n      #ifdef TINTCOLOR\n          gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*u_Tintcolor*2.0*v_Color;\n       #else\n         gl_FragColor*=t...

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

108. laya.d3.math.Vector2_API3.0 [ 60%]

...止修改 Static Readonly ZERO ZERO: Readonly<Vector2> = new Vector2(0.0, 0.0) Defined in laya/d3/math/Vector2.ts:8 零向量,禁止修改 Methods clone clone(): any Defined in laya/d3/math/Vector2.ts:124 克隆。 Returns any 克隆副本。 cloneTo cloneTo(destObject: any): void Defined in l...

来源: Laya3.0_api 发布时间: 20231102

109. laya.maths.Vector2_API3.0 [ 60%]

...止修改 Static Readonly ZERO ZERO: Readonly<Vector2> = new Vector2(0.0, 0.0) Defined in laya/maths/Vector2.ts:10 零向量,禁止修改 Methods clone clone(): any Defined in laya/maths/Vector2.ts:136 克隆。 Returns any 克隆副本。 cloneTo cloneTo(destObject: any): void Defined in laya...

来源: Laya3.0_api 发布时间: 20231115

110. SoundMananger报错 [ 60%]

...read property 'btCollisionObject' of undefined 【带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined ide 2.4 layaair2-cmd 编译报错 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 真机调试报错:LayaP...

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