大约有 190 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
....load("res/scene/LayaScene_cz1/cz1.ls"); 浏览器测试,加载失败 WebGL: INVALID_OPERATION: useProgram: program not valid [.Offscreen-For-WebGL-00615668]GL ERROR :GL_INVALID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 0 很多错误 2017-12-05 添加评...
来源: Laya_社区 发布时间: 20171205
...述5.1 Instancing5.2 ReflectionProbe5.3 attributeMap5.4 defines5.5 styles6.GLSL语法简述6.1 常见的变量类型6.2 常见的向量类型6.3 常见的矩阵类型6.4 varying7.ShaderPass8.GLSL Block9.开始编写一个LayaAir Shader9.1 创建一个Shader9.2 编写一个Shader10.顶点着色器片...
来源: Laya3.0_文档 发布时间: 20251010
...* a_BoneWeights.w;\n" + "vec4 position = skinTransform * a_Position;\n" + "gl_Position=u_MvpMatrix * position;\n" + "mat3 worldMat=mat3(u_WorldMat * skinTransform);\n" + "#else\n" + "gl_Position=u_MvpMatrix * a_Position;\n" + "mat3 worldMat=mat3(u_WorldMat);\n" + "#endif\n" + "v_Texcoord=a_Texcoord;...
来源: Laya_示例 发布时间: 20260303
...景2. 计算着色器在引擎中的能力支持2.1 资源系统集成2.2 GLSL → WGSL 的完整编译链2.3 uniformMaps 驱动的资源绑定自动化3. Compute Shader 的整体开发流程3.1 编写 GLSL 计算代码3.2 声明 uniformMaps3.3 创建 ComputeShader3.4 准备 ShaderData3.5 dispatch ...
来源: Laya3.0_文档 发布时间: 20260131
...ibute 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_Normal=worldMat*a_Normal;}"; var ps: string = "#ifdef FSHIGHPRECISION\n" + "precision highp float;\n" + "#else\n" + "precision mediump floa...
来源: Laya_社区 发布时间: 20180904
...理,在laya.core.js的_flushToTarget方法的target.start之前进行下gl.flush或者gl.finish处理,修改如下: 2022-03-30 0 5 分享 微博 QZONE 微信 Laya_Yan 赞同来自: 祥子 我们正在查,有结果及时联系您 2022-03-23 1 1 分享 微博 QZONE 微信 blr 赞同来自: ...
来源: Laya_社区 发布时间: 20220323
... u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; }`; let simpleShaderFS = ` #ifdef FSHIGHPRECISION precision highp float; #else precision mediump float; #endif varying vec3 v...
来源: Laya2.0_文档 发布时间: 20210715
...载 unity3D导入的旧版蒙皮动画时出现错误 [.Offscreen-For-WebGL-000001FC83792110]GL ERROR :GL_INVALID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 2 INVALID_VALUE: uniformMatrix4fv: invalid srcOffset 然后模型部份位置错乱 加载动画使用...
来源: Laya_社区 发布时间: 20180724
...ya/d3/shader/files/PixelSimpleTextureSkinnedMesh.ps中void main方法中的gl_FragColor=texColor*v_Color改为gl_FragColor=texColor,即可忽略制作模型中设置的顶点色! 谢谢使用,如有问题,随时反馈!附最终效果图。 2016-10-21 3 1 分享 微博 QZONE 微信 cuixu...
来源: Laya_社区 发布时间: 20161021
...ce": Laya.Shader3D.PERIOD_MATERIAL } var vs: string = ` #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec2 a_Textcoord; uniform mat4 u_WorldMat; uniform mat4 u_MvpMatrix; uniform mat4 u_View; uniform mat4 u_Projection; uniform float u_XOffset; uniform float u_YOffset; uniform float ...
来源: Laya_社区 发布时间: 20201009