大约有 160 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya2.0_文档(45) Laya_社区(29) laya_api(28) Laya3.0_api(24) Laya2.0_api(23) Laya3.0_文档(9) Laya_示例(2)
...值此属性才可生效。 ShurikenParticleSystem startColorConstant : Vector4开始颜色,0模式。ShurikenParticleSystem startColorConstantMax : Vector4最大开始颜色,1模式。ShurikenParticleSystem startColorConstantMin : Vector4最小开始颜色,1模式。ShurikenParticleS...
来源: laya_api 发布时间: 20170929
...种材质常用特效制作。 #### 主要属性与方法 > 属性 `color:Vector4` 颜色。 `renderMode:int` [write-only] 设置渲染模式。 `texture:BaseTexture` 贴图。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用Effect材质 下面代码来自官方示例([demo地址...
来源: Laya2.0_文档 发布时间: 20210715
... BaseMaterial blend : int透明混合。BaseMaterial blendConstColor : Vector4混合常量颜色。BaseMaterial blendEquation : int混合方程。BaseMaterial blendEquationAlpha : intAlpha混合方程。BaseMaterial blendEquationRGB : intRGB混合方程。BaseMaterial cull : int渲染剔除。...
来源: laya_api 发布时间: 20170929
...谢谢楼上的回复 我来说说我找到的方法 material.albedo=new Vector4(1.0, 0.0, 0.0, 1.0); 可以直接修改颜色哦!!!! 2017-12-07 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 其实用滤镜有很多好处的,当然你那个方法也没问题 2017-12-07 0 0 分享 ...
来源: Laya_社区 发布时间: 20171207
...= viewPort.height/downSampleFactor; //设置模糊材质参数 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); /...
来源: Laya3.0_文档 发布时间: 20251010
...ial = meshSprite.meshRender.sharedMaterials[0]; material.albedo = new Laya.Vector4(0.0,0.0,0.0,0.0); material.renderMode = Laya.BaseMaterial.RENDERMODE_OPAQUEDOUBLEFACE; material.reflectTexture = textureCube; }); 为什么meshSprite.meshRender.sharedMaterials[0]; 只取第一个 2016-12-15 添加评...
来源: Laya_社区 发布时间: 20161215
...rArray compressTexture compressUBO compressVector2 compressVector3 compressVector4 destroy getBool getBuffer getColor getInt getMatrix4x4 getNumber getShaderData getSourceIndex getTexture getUniformBuffer getValueData getVector getVector2 getVector3 hasDefine removeDefine reset setBool setBuffer set...
来源: Laya3.0_api 发布时间: 20231115
...= viewPort.height/downSampleFactor; //设置模糊材质参数 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); /...
来源: Laya2.0_文档 发布时间: 20210715
...Textures/Barrel_Occlusion.png'); //反射颜色 mat.albedoColor = new Laya.Vector4(1, 1, 1, 1); //光滑度缩放系数 mat.smoothnessTextureScale = 1.0; //遮挡贴图强度 mat.occlusionTextureStrength = 1.0; //法线贴图缩放洗漱 mat.normalScale = 1; //光滑度数据源:从金属度贴图/...
来源: Laya_示例 发布时间: 20251130
...extureByIndex getVector2 getVector2ByIndex getVector3 getVector3ByIndex getVector4 getVector4ByIndex hasDefine hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBufferByIndex setColor setColorByIndex setDefine setFloat setFl...
来源: Laya3.0_api 发布时间: 20231115