Skip to content
#

2d

Here are 2,699 public repositories matching this topic...

tsparticles
matteobruni
matteobruni commented Apr 27, 2022

Version 2.x introduced a lot of new packages, almost every feature has a plugin package now but the component packages have some different versions and names.

Since I'd like to have the same version for the whole project, and a better naming, all packages, except "tsparticles" will be moved to the @tsparticles\ npm group.

This is what is going to be with version 3:

`tsparticles-engine

documentation enhancement help wanted good first issue
HypnosNova
HypnosNova commented Jun 30, 2022

image
比方说这样的材质代码,基本上都是雷同的处理操作给shader传值或者拿到值。那么我想到的一种代码优化是类似这样:

class XXXMaterial extends Material {
   @bindToShader('u_emissive_texture', Texture2D) // 对应shader代码里面是哪个变量
   public emissiveTexture: Texture2D;

   @bindToShader('u_time', Float32) 
   public time: number;
}
good first issue

Improve this page

Add a description, image, and links to the 2d topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the 2d topic, visit your repo's landing page and select "manage topics."

Learn more