大约有 148 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0185 秒)
...xecute "texImage2D" on "WebGL2RenderingContext":No function was found that matched the signature provided 在this.texture2D.loadImageSource(this.cav);报错 this.cav = Laya.Browser.createElement("canvas"); this.cav.width = 256; this.cav.height = 256; var cxt = this.cav.getContext("2d"); cxt....
来源: Laya_社区 发布时间: 20200714
...容相关的链接 提交 3 个回复 uu4uu 赞同来自: 我将地面 var mat: Laya.StandardMaterial = (this.floor.getChildAt(0) as Sprite3D).meshRender.material as Laya.StandardMaterial; mat.ambientColor = new Vector3(0.5,0.5,0.5); 这样确实阴影变淡了,可地面也变色了。。。怎么...
来源: Laya_社区 发布时间: 20180320
...类型:Texture2D,Color,Vector2,Vector3,Vector4,Bool,Float,Matrix4x4,TextureCube Texture2D用于2D纹理采样的图片类型,图片本地支持格式:JPG,PNG Color 颜色类型,为四个Float类型组成的向量值,单位为0-1范围的RGB值变量 Vector2 向量2类型...
来源: Laya3.0_文档 发布时间: 20251010
...。 (图2-7) Box:立方体天空盒 Dome:球形天空盒 Material:指定天空盒的材质 Power:烘焙的光照强度 Radius:烘焙的光照半径 Max Bounces:烘焙的光照最大反弹数 (图2-8) 图2-8所示,为对一个建筑场景添加多个点光源,烘焙后...
来源: Laya3.0_文档 发布时间: 20251010
...a.DirectionLight()) as Laya.DirectionLight; //设置平行光的方向 var mat = directionLight.transform.worldMatrix as Laya.Matrix4x4; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; this.sprite3D = scene.addChild(new Laya.Sprite3D()) as Laya.Sprite3D;...
来源: Laya_社区 发布时间: 20220815
... #if defined(_RECEIVESHADOWS) vec4 uv = u_ShadowLightMatrix * position; uv.xy /= uv.w; v_shadow_data = uv; #endif片段着色器: gl_FragColor.rgb=saturate(texture2D(u_ShadowMapTex, v_shadow_data1.xy).rgb); ts代码设置u_ShadowMapTe...
来源: Laya_社区 发布时间: 20200229
... _fun] (LayaGLQuickRunner.js:132:21) 原因: Trail2DRender.defaultTrail2DMaterial 材质在gc的时候会被gc掉。 解决方法: 需要在Trail2DShaderInit的init中 设置 static init() { .... let mat = Laya.Trail2DRender.defaultTrail2DMaterial = new Laya.Material(); mat.lock = true;//...
来源: Laya_社区 发布时间: 20250630
...| Frames No Frames OrientedBoundBoxProperties | Methods Packagelaya.d3.mathClasspublic class OrientedBoundBoxInheritanceOrientedBoundBox Object OrientedBoundBox 类用于创建OBB包围盒。 Public Properties PropertyDefined By extents : Vector3每个轴长度的一半OrientedBoundBox tra...
来源: laya_api 发布时间: 20170929
...同模型,不同材质:采用一张大的纹理贴图,采用standardMaterial下TransformUV的offset来进行uv偏移,但这样修改了模型的材质, 多个动态物体材质不同,无法进行动态合并。 2 .不同模型,相同材质:采用一张大的纹理贴图,美术...
来源: Laya_社区 发布时间: 20170311
...| Frames No Frames OrientedBoundBoxProperties | Methods Packagelaya.d3.mathClasspublic class OrientedBoundBoxInheritanceOrientedBoundBox Object OrientedBoundBox 类用于创建OBB包围盒。 Public Properties PropertyDefined By extents : Vector3每个轴长度的一半OrientedBoundBox tra...
来源: Laya2.0_api 发布时间: 20190513