大约有 8 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
..., uniformMap:{ u_AlphaTestValue: { type: Float, default: 0.5, range: [0.0, 1.0] }, u_TilingOffset: { type: Vector4, default: [1, 1, 0, 0] }, u_AlbedoColor: { type: Color, default: [1, 1, 1, 1] }, u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } }, u_NormalTexture: { type: Tex...
来源: Laya3.0_文档 发布时间: 20251010
...ion() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; channel++) { // This gives us the actual ArrayBuffer that contains the data var nowBuffering = myArrayBuffer.getChannelData(channel); for (var i = 0; i < frameCount;...
来源: Laya3.0_文档 发布时间: 20251010
...all(lessThan(writeIndex, dims))) { vec3 acc = vec3(0.0); float invFilter = 1.0 / float(filterDim); for (int f = 0; f < filterDim; ++f) { int i = center + f - filterOffset; acc += invFilter * tile[r][i]; } imageStore(outputTex, writeIndex, vec4(acc, 1.0)); } } } } GLSL End 该示例展示了 SSBO ...
来源: Laya3.0_文档 发布时间: 20260131
...SampleFactor; //设置模糊材质参数 var texSize:Vector4 = new Vector4(1.0/viewPort.width,1.0/viewPort.height,viewPort.width,downSampleheigh); shaderValue.setNumber(BlurEffect.SHADERVALUE_DOWNSAMPLEVALUE,1); shaderValue.setVector(BlurEffect.SHADERVALUE_TEXELSIZE,texSize); //创建降采样Render...
来源: Laya3.0_文档 发布时间: 20251010
...addChild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一...
来源: Laya3.0_文档 发布时间: 20251010
...nlitMaterial = new Laya.UnlitMaterial(); mat1.albedoColor = new Laya.Color(1.0, 1.0, 1.0, 1.0); mat1.cull = Laya.RenderState.CULL_NONE; //指定plane的材质为创建的材质 this.plane.getComponent(Laya.MeshRenderer).sharedMaterial = mat1; //指定纹理为摄像机的渲染目标 mat1.albedoText...
来源: Laya3.0_文档 发布时间: 20251010
...aredMaterial as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0); /* ……省略若干代码 */ 4.4 使用异形物理射线 常规的物理射线是用一条射线来检测碰撞,LayaAir引擎中也提供了与物理射线检测类似的功能,但采用的是自定义...
来源: Laya3.0_文档 发布时间: 20251010
...onScaleBtnOut(e: Laya.Event) { console.log("取消缩放"); e.target.scale(1.0, 1.0); } } 分别运行两个场景看看效果: (动图4-6)Scene的Button可以点击缩放 (动图4-7)Button_Scene的三个Button都可以点击缩放 到此,我们了解了什么是UI运行时,UI运行时...
来源: Laya3.0_文档 发布时间: 20251010