大约有 35 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
...x * a_Position; }`; var ps:string = ` #ifdef HIGHPRECISION precision highp float; #else precision mediump float; #endif #include "Lighting.glsl"; uniform sampler2D u_MainTex; uniform sampler2D u_NoiseTex; uniform vec3 u_CameraPos; uniform vec3 u_AmbientColor; uniform DirectionLight u_DirectionL...
来源: Laya_社区 发布时间: 20190923
... var ps: string = " \ precision mediump float; \ varying vec2 v_texcoord; \ varying vec4 v_color; \ uniform sampler2D texture; \ uniform float progress;\ uniform vec4 uv_info;...
来源: Laya_社区 发布时间: 20170606
... varying vec3 v_PositionWorld; uniform vec3 u_CameraPosition; uniform float u_FogStart; uniform float u_FogRange; #ifdef ADDTIVEFOG #else uniform vec3 u_FogColor; #endif #endif void main() { #ifdef RENDERMODE_MESH gl_FragColor=v_MeshColor; #else gl_FragColor=vec4(1.0); ...
来源: Laya_社区 发布时间: 20190802
... Constants.TagPlayer) { return; } float num = 0f; foreach (ContactPoint2D contactPoint2D in collision.contacts) { num += contactPoint2D.normalImpulse; } this.AddResistence(collision, this.inflationU...
来源: Laya_社区 发布时间: 20191028
... //世界矩阵 Matrix4x4elements: Float32Array[16]0: 0.85106498003005981: 02: 03: 04: 05: 0.85106498003005986: 07: 08: 09: 010: 0.851064980030059811: 012: 331.600006103515613: -5.099999944384835e-1414: -3.03830003738403315: 1buffer: (...)byteLength: (...)byteO...
来源: Laya_社区 发布时间: 20170323
...7 赞同来自: 零下的孤單 ps="#ifdef HIGHPRECISION\n precision highp float;\n#else\n precision mediump float;\n#endif\n\nvarying float v_Discard;\nvarying vec4 v_Color;\nvarying vec2 v_TextureCoordinate;\nuniform sampler2D u_texture;\nuniform vec4 u_Tintcolor;\n\n#ifdef RENDERMODE_MESH\n va...
来源: Laya_社区 发布时间: 20190412
... { uInt32 : 0, sInt32 : 0, int32 : 0, double : 1, string : 2, message : 2, float : 5 }; private static _clients:any = {}; private static _servers:any = {}; static init(protos:any):void{ this._clients = protos && protos.client || {}; this._servers = protos && protos.server || {}; } st...
来源: Laya_社区 发布时间: 20180119
... _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D.BYTES_PE] } }// 关于修改shader内...
来源: Laya_社区 发布时间: 20180531
...: uniform vec3 iResolution; // viewport resolution (in pixels) uniform float iGlobalTime; // shader playback time (in seconds) uniform float iTimeDelta; // render time (in seconds) uniform int iFrame; // shader playback frame uniform float iChannelTime[4]; // channel playback time (in seco...
来源: Laya_社区 发布时间: 20170522
...al.xy * 0.04; }` var outline_ps = ` #ifdef FSHIGHPRECISION precision highp float; #else precision mediump float; #endif varying vec3 v_Normal; void main() { gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0); }` var base_vs = ` attribute vec4 a_Position; attribute vec2 a_Texcoord; attribute vec3 a_Normal; vary...
来源: Laya_社区 发布时间: 20180925