大约有 257 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
Laya_社区(87) Laya3.0_api(79) laya_api(30) Laya2.0_api(29) Laya3.0_文档(15) Laya2.0_文档(13) Laya_示例(4)
...ec4 a_Position; attribute vec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * position; } ``` 片元着色器 `outline.fs` 代码如下: ```c++ #ifdef FSHIGHPRECISION p...
来源: Laya2.0_文档 发布时间: 20210715
...删掉,所以改成 if defined 了 precision highp float; precision highp int; #else precision mediump float; precision mediump int; #endif 2021-11-26 0 0 分享 微博 QZONE 微信 为什么被折...
来源: Laya_社区 发布时间: 20211125
...2d的getPixels()返回结构 texture2d的getPixels()返回结构Uint8Array|Float32Array 如何转换为Float32Array格式 2020-01-07 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20200107
...gle: boolean Returns NativeUniformBufferObject Properties _buffer _buffer: Float32Array | Uint16Array | Uint8Array | Uint32Array Inherited from Buffer._buffer Defined in laya/RenderEngine/Buffer.ts:8 _bufferType _bufferType: number Inherited from Buffer._bufferType Defined in laya/RenderEngine/Buffe...
来源: Laya3.0_api 发布时间: 20231115
...两个二维向量的点积。 Vector2 forNativeElement(nativeElements:Float32Array = null):voidVector2 fromArray(array:Array, offset:int = 0):void 从Array数组拷贝值。 Vector2 normalize(s:Vector2, out:Vector2):void[static] 归一化二维向量。 Vector2 rewriteNumProperty(proto:...
来源: Laya2.0_api 发布时间: 20190513
...删掉,所以改成 if defined 了 precision highp float; precision highp int; #else precision mediump float; precision mediump int; #endif 2021-11-26 0 0 分享 微博 QZONE 微信 ʚ潘特儿 赞...
来源: Laya_社区 发布时间: 20211125
...: 与内容相关的链接 提交 1 个回复 缨 赞同来自: 请使用float而不是int,把0改成0.0或0. 2019-10-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 = = 相关问题 请问粒子,shader,动画缓存的优化应...
来源: Laya_社区 发布时间: 20191017
..._NAME baseRender2D #if defined(GL_FRAGMENT_PRECISION_HIGH) precision highp float; #else precision mediump float; #endif #include "Sprite2DFrag.glsl"; void main() { clip(); vec4 textureColor = texture2D(u_baseRender2DTexture, v_texcoord); // 计算渐变因子 float gradientFactor = dot(v_texcoord, n...
来源: Laya3.0_文档 发布时间: 20251120
...uaternion(x?: number, y?: number, z?: number, w?: number, nativeElements?: Float32Array): ConchQuaternion Defined in laya/d3/math/Native/ConchQuaternion.ts:414 创建一个 Quaternion 实例。 Parameters Default value x: number = 0 四元数的x值 Default value y: number = 0 四元数的y值 Defau...
来源: Laya3.0_api 发布时间: 20231102
...相机类5.3 数学类5.4 纹理类5.5 颜色类6.常见的Params类型6.1 Float6.2 Texture2D6.3 Vector2/3/46.4 Color6.5 Define7.自定义函数8.进阶示例8.1 顶点着色器片段8.2 片段着色器片段拓展:快捷操作Shader蓝图 1.蓝图概述 1.1 创建蓝图 在Assert窗口右键Creat...
来源: Laya3.0_文档 发布时间: 20251010