大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0030 秒)
...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_Normal=worldMat*a_Normal;}"; var ps: string = "#ifdef FSHIGHPRECISION\n" + "precision highp float;\n" + ...
来源: Laya_社区 发布时间: 20180904
...uniform mat4 u_WorldMat;\n" + "attribute vec3 a_Normal;\n" + "varying vec3 v_Normal;\n" + "varying vec2 v_Texcoord;\n" + "void main(){\n" + "gl_Position = u_MvpMatrix * a_Position;\n" + "mat3 worldMat=mat3(u_WorldMat);\n" + "v_Texcoord=a_Texcoord;\n" + "v_Normal=worldMat*a_Normal;}"; var ps = "#ifde...
来源: Laya_社区 发布时间: 20170815
...ldMat; uniform mat4 u_MvpMatrix; varying vec2 v_textcoord; varying vec3 v_normal; varying vec4 v_wpos; void main() { v_textcoord = a_Textcoord; v_normal = a_Normal; v_wpos = u_WorldMat * a_Position; gl_Position = u_MvpMatrix * a_Position; }`; var ps:string = ` #ifdef HIGHPRECISION precision hi...
来源: Laya_社区 发布时间: 20190923
..._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
...一化,代码示例如下: // 归一化法线 vec3 normal = normalize(v_normal); 7.ShaderPass 前面我们在SubShader中简要的介绍了Pass的作用,在本节中我们会结合详细的Shader内容来展示ShaderPass的具体功能 Shader3D Start { type:Shader3D name:exmpleShader enableIns...
来源: Laya3.0_文档 发布时间: 20241014