大约有 584 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0085 秒)
Laya_社区(357) Laya2.0_文档(64) Laya3.0_api(54) Laya_示例(32) Laya3.0_文档(22) Laya2.0_api(22) laya_api(20) Laya2.0_示例(13)
...terial(); material.albedo = new Vector4(1.3, 1.3, 1.3, 1); material.diffuseTexture = Texture2D.load("res/bg.png"); plane.meshRender.material = material; //生成坐标中心,其实是球体 var sphere = scene.addChild(new MeshSprite3D(new SphereMesh(0.05,100,100))) as MeshSprite3D; var material = ...
来源: Laya_社区 发布时间: 20170314
...放模式的具体表现如下: 设置解码器后,由于被捕获到Texture在显示,所以与视频节点的宽高一致,如动图1-3所示 (动图1-3) 设置播放器后,由于视频直接浮动在主画布上面,所以维持视频原本的宽高比,如动图1-4所示 (动图1...
来源: Laya3.0_文档 发布时间: 20251010
...OT_DATA_PATHS: string = "res/swf/star.json"; private ROBOT_TEXTURE_PATH: string = "res/swf/star.png"; constructor() { // Laya.init(800, 600); // Laya.loader.load([{"url":"res/swf/star.swf","type":Laya.Loader.BUFFER}],Laya.Handler.create(this,th...
来源: Laya_社区 发布时间: 20180203
...位置获取不正确 unity中的模型导出后在laya中显示不正常 Texture图片能否进行翻转? 开启CastShadow以后,模型会莫名其妙消失,物体渲染队列的_IndexInList会被破坏 一个3D正方体模型,想给它六个面贴不同的贴图,该如何处理? LayaAi...
来源: Laya_社区 发布时间: 20190111
...ation scaleX scaleY scene scene3D scrollRect skewX skewY stage staticCache texture timer top transform url viewport visible width x y zOrder manager root Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer close contai...
来源: Laya3.0_api 发布时间: 20231115
...RANSPARENT SHADERDEFINE_ADDTIVEFOG SHADERDEFINE_ALPHATEST SHADERDEFINE_MAINTEXTURE renderQuality Accessors MaterialDefine MaterialProperty _defineDatas albedoColor albedoTexture alphaTest alphaTestValue anisotropy anisotropyEnable anisotropyRotation anisotropyTexture blend blendDst blendDstAlpha ble...
来源: Laya3.0_api 发布时间: 20231115
...er scrollRect shadowMapFrequency skewX skewY skyRenderer stage staticCache texture timer transform url viewport visible width x y zOrder _updateMark Methods _initialize _processActive _setCullCamera addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer co...
来源: Laya3.0_api 发布时间: 20231115
...new Laya.StandardMaterial(); //材质加载漫反射贴图 material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); //为模型赋材质(单个材质可赋给多个模型) sphere.meshRender.material = material; box.meshRender.material = material; //旋转方向与角度设置 var vect:L...
来源: Laya_社区 发布时间: 20180307
...oad("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:...
来源: Laya2.0_文档 发布时间: 20210714
...ump float; #endif #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_gradientS...
来源: Laya3.0_文档 发布时间: 20251120