- 博客(181)
- 资源 (1)
- 收藏
- 关注
原创 Promise(微任务)和setTimeout(宏任务)的理解
Promise 主要用于处理异步操作的结果,而 setTimeout 用于延迟执行某段代码。Promise 可以链式调用,便于处理多个异步操作的结果,而 setTimeout 只是简单的延迟执行。
2025-04-10 17:10:54
823
原创 游戏引擎详解——图片
新建一个subTask,input为task.input,options为subOptions对象,走transformPipeline管线流程同步执行任务,获取的值设置为task.source和task.output。creator引擎在编译时会把选中的纹理压缩类型记录到import文件夹下的json文件中,多种图片格式以下划线‘_’区分开,下图演示里选择了astc6x6格式和webp格式,所以生成的类型就是。因为大部分gpu对于压缩后的纹理有比较好的支持,无需cpu解码,占用内存小。
2024-08-21 17:25:45
3915
2
原创 typescript中let和var、for循环和闭包的探索
最近在做一些场景优化时,突然发现一些代码的实现效果并没有如我所预期的那样运行,仔细研究了一下发现了一些有趣的知识。
2024-05-22 21:26:43
552
原创 CocosCreator图片处理:截图裁剪,保存到本地,从本地加载,远端图片转base64
CocosCreator图片处理:截图裁剪,保存到本地,从本地加载,远端图片转base64
2023-05-26 20:58:01
4035
原创 Real-Time Rendering——Chapter 16Polygonal Techniques多边形技术
Real-Time Rendering——Chapter 16Polygonal Techniques多边形技术
2023-02-27 09:19:43
265
原创 Real-Time Rendering——18.5 Multiprocessing多处理
Real-Time Rendering——18.5 Multiprocessing多处理
2022-11-07 20:46:00
410
原创 Real-Time Rendering——18.4 Optimization优化
Real-Time Rendering——18.4 Optimization优化
2022-11-01 19:51:57
1067
原创 Real-Time Rendering——18.3 Performance Measurements性能测量
Real-Time Rendering——18.3 Performance Measurements性能测量
2022-10-24 09:25:08
254
原创 Real-Time Rendering——18.2 Locating the Bottleneck找出瓶颈
Real-Time Rendering——18.2 Locating the Bottleneck找出瓶颈
2022-10-17 09:45:55
206
原创 Real-Time Rendering——Chapter 18Pipeline Optimization管道优化
Real-Time Rendering——Chapter 18Pipeline Optimization管道优化
2022-10-14 09:28:09
325
原创 Real-Time Rendering——16.6 Compression and Precision压缩和精度
Real-Time Rendering——16.6 Compression and Precision压缩和精度
2022-10-12 09:59:07
823
原创 Real-Time Rendering——16.5 Simplification简单化
Real-Time Rendering——16.5 Simplification简单化
2022-10-10 09:52:14
548
原创 Real-Time Rendering——16.4 Triangle Fans, Strips, and Meshes16.4三角形扇形、条带和网格
Real-Time Rendering——16.4 Triangle Fans, Strips, and Meshes16.4三角形扇形、条带和网格
2022-10-08 09:35:52
937
原创 Real-Time Rendering——16.3 Consolidation合并
Real-Time Rendering——16.3 Consolidation合并
2022-09-23 09:56:13
374
原创 Real-Time Rendering——16.2 Tessellation and Triangulation曲面细分和三角测量
Real-Time Rendering——16.2 Tessellation and Triangulation曲面细分和三角测量
2022-09-21 09:59:10
304
原创 Real-Time Rendering——16.1 Sources of Three-Dimensional Data三维数据的来源
Real-Time Rendering——16.1 Sources of Three-Dimensional Data三维数据的来源
2022-09-21 09:37:49
350
原创 Real-Time Rendering——15.2 Outline Rendering轮廓渲染
Real-Time Rendering——15.2 Outline Rendering轮廓渲染
2022-09-19 09:33:44
265
原创 Real-Time Rendering——Chapter 15Non-Photorealistic Rendering非真实感渲染15.1 Toon Shading15.1卡通阴影
Real-Time Rendering——Chapter 15Non-Photorealistic Rendering非真实感渲染15.1 Toon Shading15.1卡通阴影
2022-09-15 09:52:04
330
原创 Real-Time Rendering——10.1 Area Light Sources区域光源
Real-Time Rendering——10.1 Area Light Sources区域光源
2022-09-14 09:53:55
305
原创 Real-Time Rendering——Chapter 10Local Illumination局部照明
Real-Time Rendering——Chapter 10Local Illumination局部照明
2022-09-02 09:35:31
260
原创 Real-Time Rendering——9.13.1 Filtering Normals and Normal Distributions过滤法线和正态分布
Real-Time Rendering——9.13.1 Filtering Normals and Normal Distributions过滤法线和正态分布
2022-08-10 09:56:41
337
原创 Real-Time Rendering——9.13 Blending and Filtering Materials混合和过滤材料
Real-Time Rendering——9.13 Blending and Filtering Materials混合和过滤材料
2022-08-09 09:37:25
861
原创 Real-Time Rendering——9.12 Layered Materials层状材料
Real-Time Rendering——9.12 Layered Materials层状材料
2022-08-08 09:50:36
301
原创 Real-Time Rendering——9.11 Wave Optics BRDF Models波动光学BRDF模型
Real-Time Rendering——9.11 Wave Optics BRDF Models波动光学BRDF模型
2022-08-08 09:38:54
504
原创 Real-Time Rendering——9.10 BRDF Models for Cloth BRDF布料模型
Real-Time Rendering——9.10 BRDF Models for Cloth BRDF布料模型
2022-08-05 09:22:42
417
原创 Real-Time Rendering——9.9.4 Rough-Surface Subsurface Models粗糙表面地下模型
Real-Time Rendering——9.9.4 Rough-Surface Subsurface Models粗糙表面地下模型
2022-08-02 09:52:41
205
原创 Real-Time Rendering——9.9.3 Smooth-Surface Subsurface Models光滑表面地下模型
Real-Time Rendering——9.9.3 Smooth-Surface Subsurface Models光滑表面地下模型
2022-08-01 09:45:33
193
原创 Real-Time Rendering——9.9.2 Scale of Subsurface Scattering and Roughness地下散射和粗糙度的标度
Real-Time Rendering——9.9.2 Scale of Subsurface Scattering and Roughness地下散射和粗糙度的标度
2022-07-29 09:53:24
189
原创 Real-Time Rendering——9.9 BRDF Models for Subsurface Scattering地下散射的BRDF模型9.9.1 Subsurface Albedo地下反照
Real-Time Rendering——9.9 BRDF Models for Subsurface Scattering地下散射的BRDF模型9.9.1 Subsurface Albedo地下反照
2022-07-29 09:38:37
272
原创 Real-Time Rendering——9.8.2 Multiple-Bounce Surface Reflection多次反射表面反射
Real-Time Rendering——9.8.2 Multiple-Bounce Surface Reflection多次反射表面反射
2022-07-27 09:40:21
182
原创 Real-Time Rendering——9.8.1 Normal Distribution Functions正态分布函数
Real-Time Rendering——9.8.1 Normal Distribution Functions正态分布函数
2022-07-26 09:57:45
494
原创 Real-Time Rendering——9.8 BRDF Models for Surface Reflection表面反射的BRDF模型
Real-Time Rendering——9.8 BRDF Models for Surface Reflection表面反射的BRDF模型
2022-07-22 09:45:48
172
原创 Real-Time Rendering——9.7 Microfacet Theory微法理论
Real-Time Rendering——9.7 Microfacet Theory微法理论
2022-07-21 10:00:06
576
CocosCreator重复滚动列表代码
2022-08-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人