大约有 92 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...osition=remapGLPositionZ(gl_Position); } ``` 片元着色器 `simpleShader.fs` 代码如下: ```c++ #ifdef FSHIGHPRECISION precision highp float; #else precision mediump float; #endif varying vec3 v_Normal; void main() { gl_FragColor=vec4(v_Normal,1.0); } ``` #### 2.代码中组成Shader 在代码...
来源: Laya2.0_文档 发布时间: 20210715
...n.d.ts", "node_modules/@types/node/events.d.ts", "node_modules/@types/node/fs.d.ts", "node_modules/@types/node/http.d.ts", "node_modules/@types/node/http2.d.ts", "node_modules/@types/node/https.d.ts", "node_modules/@types/node/module.d.ts", "node_modules/@types/node/net.d.ts", "node_modules/@types/n...
来源: Laya_社区 发布时间: 20190227
... 2018-01-30 0 0 分享 微博 QZONE 微信 蜗牛 赞同来自: <div>fs</div> 2018-07-31 0 0 分享 微博 QZONE 微信 jlike521 赞同来自: 3D 游戏 略粗 欢迎 指点 2018-11-29 0 0 分享 微博 QZONE 微信 颠沛流离 赞同来自: 二维码打不开了 2018-12-21 0 0 分享 ...
来源: Laya_社区 发布时间: 20160722
.../throw 'download error'; }else{ onEvent('downloadOK'); //let md5 = calcmd5(fs_readFileSync(localfile)); //console.log('md5='+md5); let zip = new ZipFile(); if(zip.setSrc(localfile)){ zip.forEach((id,name,dir,sz)=>{ if(!dir){ let buf = zip.readFile(id); //console.log("update "+name); let fid = win...
来源: Laya_社区 发布时间: 20180108
...er, y:Number, width:Number = 0, height:Number = 0, type:String = repeat, offset:Point = null):void 用texture填充。 Graphics getBounds(realSize:Boolean = false):Rectangle 获取位置及宽高信息矩阵(比较耗CPU,频繁使用会造成卡顿,尽量少用)。 Graphics loadImage(url:Strin...
来源: laya_api 发布时间: 20170929
...}), glsl({ // By default, everything gets included include: /.*(.glsl|.vs|.fs)$/, sourceMap: false, compress:false }), /*terser({ output: { }, numWorkers:1,//Amount of workers to spawn. Defaults to the number of CPUs minus 1 sourcemap: false })*/ ] }).then(bundle => { return bundle.write({ file: ...
来源: Laya_社区 发布时间: 20200607
...Renderer skinnedMeshRenderer, System.String meshName, System.IO.FileStream fs, System.Int32 MaxBoneCount) (at ./Library/PackageCache/com.layaair.export-tool@0665d13336/Editor/Export/utils/MeshUitls.cs:397) MeshFile.SaveFile (System.Collections.Generic.Dictionary`2[TKey,TValue] exportFiles) (at ./Lib...
来源: Laya_社区 发布时间: 20240111
... bool, default: true } } shaderPass:[ { pipeline:Forward, VS:baseRenderVS, FS:baseRenderPS } ] } Shader3D End GLSL Start #defineGLSL baseRenderVS #define SHADER_NAME baseRender2D #include "Sprite2DVertex.glsl"; void main() { vec4 pos; //先计算位置,再做裁剪 getPosition(pos); vertexInfo inf...
来源: Laya3.0_文档 发布时间: 20251120
... { type: Float, default: 0.5, range: [0.0, 1.0] }, u_TilingOffset: { type: Vector4, default: [1, 1, 0, 0] }, u_AlbedoColor: { type: Color, default: [1, 1, 1, 1] }, u_AlbedoColorScale: { type: Float, default: 1.0 }, u_AlbedoTexture: { type: Texture2...
来源: Laya_社区 发布时间: 20250428
...Float32Array(20 * 4); for (var i = 0; i < this._colorNums; i++) { let offset = i * 4; colorBuffer[offset] = Math.random(); colorBuffer[offset + 1] = Math.random(); colorBuffer[offset + 2] = Math.random(); colorBuffer[offset + 3] = 1; } //设置uniformbuffer this.batchMat.setBuffer("colormap", col...
来源: Laya3.0_文档 发布时间: 20251010