• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 201 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)

171. 分享水波一个shader [ 38%]

...N precision highp float; #else precision mediump float; #endif  #include "Lighting.glsl";   uniform sampler2D u_MainTex; uniform sampler2D u_NoiseTex; uniform vec3 u_CameraPos; uniform vec3 u_AmbientColor; uniform DirectionLight u_DirectionLight; uniform float u_Time;  varying vec2 v_textcoord; v...

来源: Laya_社区 发布时间: 20190923

172. 自定义shader-地形shader [ 37%]

...es/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMaterial.setLightMapTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/Assets/Scenes/Level/XunLongShi/Lightmap-0_comp_light.png")); customMaterial.setDiffuseTexture1(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/te...

来源: Laya_示例 发布时间: 20251130

173. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 37%]

... 'u_MainCol': Laya.Shader3D.PERIOD_MATERIAL }; var vs:string = ` #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec3 a_Normal; attribute vec2 a_Texcood0; uniform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; varying vec3 v_Normal; varying vec2 uv; varying vec4 worldPos; void main() { gl...

来源: Laya_社区 发布时间: 20190814

174. 照相机-3D空间转2D空间 [ 37%]

...a.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(La...

来源: Laya_示例 发布时间: 20251130

175. 灯光-点光 [ 37%]

... true, false); camera.addComponent(CameraMoveScript); //点光源 var pointLight = scene.addChild(new Laya.PointLight()); pointLight.color = new Laya.Vector3(0.1189446, 0.5907708, 0.7352941); pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); pointLight.attenuation = new Laya.Vector3(0...

来源: Laya_示例 发布时间: 20251130

176. 材质-BlinnPhong-漫反射贴图 [ 36%]

...ue, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureC...

来源: Laya_示例 发布时间: 20251130

177. 灯光-聚光 [ 35%]

..., true, false); camera.addComponent(CameraMoveScript); //聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()); spotLight.color = new Laya.Vector3(1, 1, 0); spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); spotLight.direction = new Laya.Vector3(0.15, -1.0, 0.0); spotLight.att...

来源: Laya_示例 发布时间: 20251130

178. laya.utils.Stat_API3.0 [ 35%]

...Toggle: Array<StatToggleUIParams> = [Stat.toogle_Shadow, Stat.toogle_Light, Stat.toogle_MulLight, Stat.toogle_Postprocess, Stat.toogle_AnimatorUpdate, Stat.toogle_PhysicsUpdate, Stat.toogle_Opaque, Stat.toogle_Transparent, Stat.toogle_CameraCMD, Stat.toogle_Skin, Stat.toogle_Particle, Stat.too...

来源: Laya3.0_api 发布时间: 20231115

179. 动画-新版骨骼动画 [ 35%]

...a.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../../res/thr...

来源: Laya_示例 发布时间: 20251130

180. Mesh网格-自定义网格 [ 34%]

...a.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new ...

来源: Laya_示例 发布时间: 20251130