New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ogl

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ogl - npm Package Compare versions

Comparing version 0.0.107 to 0.0.108

2

package.json
{
"name": "ogl",
"version": "0.0.107",
"version": "0.0.108",
"description": "WebGL Library",

@@ -5,0 +5,0 @@ "exports": "./src/index.mjs",

@@ -12,2 +12,3 @@ import { Camera } from '../core/Camera.js';

this.target = new RenderTarget(gl, { width, height });
this.targetUniform = { value: this.target.texture };

@@ -37,3 +38,3 @@ this.depthProgram = new Program(gl, {

mesh.program.uniforms[uniformView] = { value: this.light.viewMatrix };
mesh.program.uniforms[uniformTexture] = { value: this.target.texture };
mesh.program.uniforms[uniformTexture] = this.targetUniform;
}

@@ -64,2 +65,7 @@

setSize({ width = 1024, height = width }) {
this.target = new RenderTarget(this.gl, { width, height });
this.targetUniform.value = this.target.texture;
}
render({ scene }) {

@@ -66,0 +72,0 @@ // For depth render, replace program with depth override.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc