大约有 6 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0020 秒)
....0)); scene.addChild(camera); camera.transform.translate(new Vector3(0, 0, 1.0)); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load(envpath + envinfoobj.skytex); skyDo...
来源: Laya_示例 发布时间: 20241118
....Vector4(1, 1, 1, 1); //光滑度缩放系数 mat.smoothnessTextureScale = 1.0; //遮挡贴图强度 mat.occlusionTextureStrength = 1.0; //法线贴图缩放洗漱 mat.normalScale = 1; //光滑度数据源:从金属度贴图/反射贴图获取。 mat.smoothnessSource = Laya.PBRStandardMaterial.Smoot...
来源: Laya_示例 发布时间: 20241118
...ya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); var layaPlane = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/LayaPlane/LayaPla...
来源: Laya_示例 发布时间: 20241118
...ser = Laya.Browser; var WebGL = Laya.WebGL; var starCount = 2500; var sx = 1.0 + (Math.random() / 20); var sy = 1.0 + (Math.random() / 20); var stars = []; var w = Browser.width; var h = Browser.height; var slideX = w / 2; var slideY = h / 2; var speedInfo; (function() { Laya.init(w, h, WebGL); crea...
来源: Laya_示例 发布时间: 20241118
...e/earth.png")); customMaterial.setMarginalColor(new Laya.Vector3(0.0, 0.3, 1.0)); earth.meshRender.sharedMaterial = customMaterial; var rotation = new Laya.Vector3(0, 0.01, 0); Laya.timer.frameLoop(1, null, function () { earth.transform.rotate(rotation, true); }); function initShader() { var attribu...
来源: Laya_示例 发布时间: 20241118
...Texcoord0.x*u_lightmapScaleOffset.x+u_lightmapScaleOffset.z,(a_Texcoord0.y-1.0)*u_lightmapScaleOffset.y+u_lightmapScaleOffset.w);\n #endif\n}"; var ps="#ifdef FSHIGHPRECISION\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n\n#include \"LightHelper.glsl\";\n\nuniform sampler2D u_Spl...
来源: Laya_示例 发布时间: 20241118