大约有 4 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0016 秒)
...+ "#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_示例 发布时间: 20241117
...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_示例 发布时间: 20241117
...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_示例 发布时间: 20241117
...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_示例 发布时间: 20241117