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

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

1. 自定义shader-简单shader [ 100%]

... "mat3 worldMat=mat3(u_WorldMat);\n" + "v_Normal=worldMat*a_Normal;}"; var ps = "#ifdef FSHIGHPRECISION\n" + "precision highp float;\n" + "#else\n" + "precision mediump float;\n" + "#endif\n" + "varying vec3 v_Normal;\n" + "void main(){\n" + "gl_FragColor=vec4(v_Normal,1.0);}\n"; Laya.ShaderCompile3...

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

2. 自定义shader-边缘光照shader [ 78%]

...World=(u_WorldMat*a_Position).xyz;\n" + "#endif\n" + "#endif\n" + "}"; var ps = "#ifdef FSHIGHPRECISION\n" + "precision highp float;\n" + "#else\n" + "precision mediump float;\n" + "#endif\n" + "#include?DIRECTIONLIGHT||POINTLIGHT||SPOTLIGHT 'LightHelper.glsl';\n" + "varying vec2 v_Texcoord;\n" + "u...

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

3. 自定义shader-地形shader [ 64%]

...l.setSpecularColor(new Laya.Vector4(1, 1, 1, 8)); customMaterial.setLightMapScaleOffset(new Laya.Vector4(0.8056641, 0.8056641, 0.001573598, -6.878261E-11)); meshSprite3D.meshRender.sharedMaterial = customMaterial; } for (var i = 0, n = spirit3D._childs.length; i < n; i++) setCustomMaterial(spirit3D....

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