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

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

11. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 76%]

..._Texcood0; uniform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; varying vec3 v_Normal; varying vec2 uv; varying vec4 worldPos; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat = mat3(u_WorldMat); v_Normal = worldMat * a_Normal; worldPos = u_WorldMat * a_Position; uv = a_Texcood0; gl...

来源: Laya_社区 发布时间: 20190814

12. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 72%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210715

13. 关联shader的uniform(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 72%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210715

14. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 71%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210715

15. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 68%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210715

16. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 67%]

..._MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Position); } ```...

来源: Laya2.0_文档 发布时间: 20210715

17. 自定义shader-地形shader [ 55%]

...rm 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\nvoid main()\n{\n gl_Position = u_MvpMatrix * a_Position;\n \n v_Normal = a_Normal;\n v_Texcoord0 = a_Texcoord0;\n v_Positio...

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

18. 自定义Shader · LayaAir3.0文档 · LAYABOX [ 39%]

...一化,代码示例如下: // 归一化法线 vec3 normal = normalize(v_normal); 7.ShaderPass 前面我们在SubShader中简要的介绍了Pass的作用,在本节中我们会结合详细的Shader内容来展示ShaderPass的具体功能 Shader3D Start { type:Shader3D name:exmpleShader enableIns...

来源: Laya3.0_文档 发布时间: 20241014