大约有 451 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0045 秒)
Laya_社区(254) Laya3.0_api(91) Laya2.0_文档(60) Laya_示例(22) Laya2.0_api(10) laya_api(7) Laya3.0_文档(7)
...vec2 v_Texcoord; uniform sampler2D u_Texture; void main() { gl_FragColor = texture2D(u_Texture, v_Texcoord); }` outlineShader.addShaderPass(outline_vs, outline_ps) outlineShader.addShaderPass(base_vs, base_ps) this.setShaderName("OutlineShader") this.getRenderState(0).cull = 1 } set diffuseTexture (...
来源: Laya_社区 发布时间: 20180925
...dardMaterial = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; var layaMonkey = scene.addChild(Laya.Sprite3D.load("res/LayaMonkey/LayaMonkey.lh")); 2018-03-12 0 0 分享 微博 QZONE 微信 banmini 赞同来自: 补...
来源: Laya_社区 发布时间: 20180312
...抽象类,不允许实例。 Hierarchy Resource BaseTexture NativeRenderTexture2D RenderTexture2D RenderTexture TextureCube Texture2DArray Texture2D VideoTexture Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel compare...
来源: Laya3.0_api 发布时间: 20231115
...rm sampler2D u_MainTex; varying vec2 v_textcoord; void main() { vec4 col = texture2D(u_MainTex, v_textcoord); gl_FragColor = col; } `; var shader: Laya.Shader3D = Laya.Shader3D.add("CustomCurveShader"); var subShader: Laya.SubShader = new Laya.SubShader(attributeMap, uniformMap); shader.addSubShader...
来源: Laya_社区 发布时间: 20201009
...form变量。 3.1 Uniform常见变量类型 Uniform变量的常见类型:Texture2D,Color,Vector2,Vector3,Vector4,Bool,Float,Matrix4x4,TextureCube Texture2D用于2D纹理采样的图片类型,图片本地支持格式:JPG,PNG Color 颜色类型,为四个Float类型组成的...
来源: Laya3.0_文档 发布时间: 20241014
...纹理 pbrTexture = Loader.getRes("res/threeDimen/texture/earth.png") as Texture2D; //为PBRStandard材质设置漫反射贴图 pbrStandardMaterial.albedoTexture = pbrTexture; //修改导出球的材质 sphere.meshRenderer.material = pbrStandardMaterial; ``` ![](img/5.png)(图5) ### 3.是否能接...
来源: Laya2.0_文档 发布时间: 20210715
...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.util...
来源: Laya_示例 发布时间: 20241124
...brTexture = Laya.Loader.getRes("res/threeDimen/texture/earth.png") as Laya.Texture2D; //为PBRStandard材质设置漫反射贴图 this.pbrStandardMaterial.albedoTexture = this.pbrTexture; //修改导出球的材质 this.sphere.meshRenderer.material = this.pbrStandardMaterial; ``` ![](img/5.png)(图5...
来源: Laya2.0_文档 发布时间: 20210715
.../d3/core/render/BloomEffect.ts:83 泛光颜色。 dirtTexture dirtTexture: Texture2D = null Defined in laya/d3/core/render/BloomEffect.ts:87 镜头污渍纹路,用于为泛光特效增加污渍灰尘效果 fastMode fastMode: boolean = false Defined in laya/d3/core/render/BloomEffect.ts:85 是否开...
来源: Laya3.0_api 发布时间: 20231102
...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.util...
来源: Laya_示例 发布时间: 20241124