大约有 129 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0104 秒)
...uniformMaps 规则详解5.1 uniformMaps 是数组而不是对象5.2 StorageTexture2D 与 StorageBuffer 规则5.3 未声明资源的自动补齐机制6. 编译流程与底层实现6.1 ComputeShader 创建与缓存6.2 GLSL → SPIR-V → WGSL7. 自动绑定机制与 SSBO 约束7.1 绑定点自动分...
来源: Laya3.0_文档 发布时间: 20260131
...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窗口右键Create菜单...
来源: Laya3.0_文档 发布时间: 20251010
...eters value: boolean Returns void panoramicTexture get panoramicTexture(): Texture2D set panoramicTexture(value: Texture2D): void Defined in laya/d3/core/material/SkyPanoramicMaterial.ts:67 全景天空纹理。 Returns Texture2D Defined in laya/d3/core/material/SkyPanoramicMaterial.ts:71 全景天...
来源: Laya3.0_api 发布时间: 20231115
...Laya.TrailTextureMode.Stretch; //设置纹理 this._trail2D.texture = Laya.Texture2D.whiteTexture; // Laya.loader.load("此处填写纹理的路径").then((res) => { // this._trail2D.texture = res; // }); //设置线段颜色 this._trail2D.color = new Laya.Color(1, 1, 1, 1); } //控制物体向...
来源: Laya3.0_文档 发布时间: 20251010
...ass BaseTextureInheritanceBaseTexture laya.resource.BitmapSubclasses RenderTexture2D, Texture2D BaseTexture 纹理的父类,抽象类,不允许实例。 Public Properties PropertyDefined By anisoLevel : int 各向异性等级 BaseTexture defaulteTexture : BaseTexture[read-only] 获取默...
来源: Laya2.0_api 发布时间: 20190513
... 类型 说明 默认值 texture BaseTexture 光晕元素的纹理贴图 Texture2D.whiteTexture tint Color 光晕元素的颜色 Color(1,1,1,1) intensity number 光晕元素的强度 1.0 startPosition number 起始位置(0=光源中心,1=屏幕边缘) 0.0 angularOffset number 角度偏移(0-...
来源: Laya3.0_文档 发布时间: 20260105
...v_Normal; varying vec2 uv; varying vec4 worldPos; void main() { vec4 col = texture2D(u_MainTex, uv); //gl_FragColor = vec4(worldPos.xyz, 1.0); float d = distance(worldPos.xyz, vec3(.0, .0, .0)) * 0.15; col.xyz *= d; col.xyz *= u_MainCol; col.a = 0.5; gl_FragColor = col; }`; var customShader:Laya.Sha...
来源: Laya_社区 发布时间: 20190814
...if #include "Sprite2DFrag.glsl"; void main() { clip(); vec4 textureColor = texture2D(u_baseRender2DTexture, v_texcoord); // 计算渐变因子 float gradientFactor = dot(v_texcoord, normalize(u_gradientDirection)) * 0.5 + 0.5; // 混合渐变颜色 vec4 gradientColor = mix(u_gradientStartColor, u_gr...
来源: Laya3.0_文档 发布时间: 20251120
...arameters value: boolean Returns void tangentTexture get tangentTexture(): Texture2D set tangentTexture(value: Texture2D): void Inherited from PBRMaterial.tangentTexture Defined in laya/d3/core/material/PBRMaterial.ts:390 Returns Texture2D Inherited from PBRMaterial.tangentTexture Defined in laya/d3...
来源: Laya3.0_api 发布时间: 20231102
...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null): Texture | RenderTexture2D Inherited from Text.drawToTexture Defined in laya/display/Sprite.ts:1259 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: number offsetX: number offsetY: n...
来源: Laya3.0_api 发布时间: 20231115