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

大约有 4 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0020 秒)

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

...rldMat*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.ShaderCompile3D.add(customShader, vs, ps, attributeMap, uniformMa...

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

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

...+ "#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" + "uniform sampler2D u_texture;\n" + "uniform vec3 u_ma...

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

3. 材质-物理基础渲染材质 [ 65%]

...a.DataTexture2D.load(envpath + envinfoobj.prefiltedEnv); var irrdMat = new Float32Array(envinfoobj.IrradianceMat); skyDome.envDiffuseSHRed = irrdMat.slice(0, 16); skyDome.envDiffuseSHGreen = irrdMat.slice(16, 32); skyDome.envDiffuseSHBlue = irrdMat.slice(32, 48); addTestSphere(); } function addTestS...

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

4. 自定义shader-地形shader [ 53%]

...leOffset.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_SplatAlphaTexture;\nuniform sampler2D u_NormalTexture;\nuniform sampler2D u_LightMapTexture;\n\nuniform sampler2D u_Diff...

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