
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
将webgl 的绘制简化,即减少api 调用,使绘制变得简洁/易使用,但是不是以丢失webgl自由度为代价的。
setProgram(gl, program);
setBuffersAndAttributes(gl, geometry, program);
drawBufferInfo(gl, geometry);
<!-- let vsShader = createShader(gl, ShaderTypeEnum.VS, vs_str, name + "_vs");
let fsShader = createShader(gl, ShaderTypeEnum.FS, fs_str, name + "_fs");
let item = gl.createProgram();
gl.attachShader(item, vsShader.shader);
gl.attachShader(item, fsShader.shader);
gl.linkProgram(item); -->
/*
* 除了得到program,attributes、uiforms信息也会整理出来
*/
let bassprogram = createBassProgramInfo(gl, defErrorVs, defErrorFs, programName);
整合program /uniforms/sates
<!-- let uniforms: { [key: string]: any } = {};
uniforms["_MainColor"] = new Float32Array([0.5, 1, 0.5, 1]);
let bassporgram = createBassProgramInfo(gl, defErrorVs, defErrorFs, "ssxx");
let state: IProgramState = { depth_Test: false } -->
let program = createProgramInfo(gl, { program: bassporgram, uniforms: uniforms ,states: state});
或者
let program = createProgramInfo(gl, { program: { vs: defVs, fs: defFs, name: "ssxxss" }, uniforms: uniforms, states: state });
let geometry = createGeometryInfoFromArray(gl,
{
"aPos": [-0.5, -0.5, 0.5, -0.5, 0.5, 0, 0.5, 0.5, 0, 0.5, -0.5, 0],
"aUv": [0, 1, 0, 0, 1, 0, 1, 1]
}, [0, 1, 2, 0, 3, 2]);
FAQs
将webgl 的绘制简化,即减少api 调用,使绘制变得简洁/易使用,但是不是以丢失webgl自由度为代价的。
The npm package twebgl receives a total of 3 weekly downloads. As such, twebgl popularity was classified as not popular.
We found that twebgl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.