大约有 5 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0086 秒)
...单个纹理对象 //接口 addTexture(texture: Texture, scale: number = 1.0, largeTextureIndex: number = -1): boolean 参数说明: texture: 要添加的 Texture 对象。 scale: 缩放系数。 largeTextureIndex:大纹理的索引,指定添加到哪个大纹理。 //使用示例 const text...
来源: Laya3.0_文档 发布时间: 20260131
...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
...aredMaterial as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0); /* ……省略若干代码 */ 4.4 使用异形物理射线 常规的物理射线是用一条射线来检测碰撞,LayaAir引擎中也提供了与物理射线检测类似的功能,但采用的是自定义...
来源: Laya3.0_文档 发布时间: 20251010
...数乘数来影响整个 3D 渲染管线的分辨率计算,默认值为 1.0,表示使用基础分辨率进行渲染。 在代码实现中,pixelRatio 主要影响相机的 clientWidth 和 clientHeight 属性计算,其中如果启用了自定义分辨率(Config3D.customResolution),则实...
来源: Laya3.0_文档 发布时间: 20251231