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

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

1. 自定义shader-边缘光照shader [ 100%]

...+ "attribute vec2 a_Texcoord;\n" + "attribute vec3 a_Normal;\n" + "uniform mat4 u_MvpMatrix;\n" + "uniform mat4 u_WorldMat;\n" + "varying vec2 v_Texcoord;\n" + "varying vec3 v_Normal;\n" + "#ifdef BONE\n" + "attribute vec4 a_BoneIndices;\n" + "attribute vec4 a_BoneWeights;\n" + "const int c_MaxBoneC...

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

2. 自定义shader-简单shader [ 95%]

...ey.add("CustomShader"); var vs = "attribute vec4 a_Position;\n" + "uniform mat4 u_MvpMatrix;\n" + "uniform mat4 u_WorldMat;\n" + "attribute vec3 a_Normal;\n" + "varying vec3 v_Normal;\n" + "void main(){\n" + "gl_Position = u_MvpMatrix * a_Position;\n" + "mat3 worldMat=mat3(u_WorldMat);\n" + "v_Norma...

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

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

...tion;\nattribute vec2 a_Texcoord0;\nattribute vec2 a_Texcoord1;\n\nuniform mat4 u_MvpMatrix;\nuniform mat4 u_WorldMat;\nuniform vec4 u_lightmapScaleOffset;\n\nattribute vec3 a_Normal;\n\nvarying vec3 v_Normal;\n\nvarying vec3 v_PositionWorld;\n\nvarying vec2 v_Texcoord0;\nvarying vec2 v_Texcoord1;\n...

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