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.20 to 0.0.21

src/extras/GPGPU.js

2

package.json
{
"name": "ogl",
"version": "0.0.20",
"version": "0.0.21",
"description": "WebGL Framework",

@@ -5,0 +5,0 @@ "main": "src",

@@ -139,3 +139,3 @@ <p align="center">

const geometry = new Geometry(gl, {
position: {size: 3, data: new Float32Array([-1, -1, 0, 3, -1, 0, -1, 3, 0])},
position: {size: 2, data: new Float32Array([-1, -1, 3, -1, -1, 3])},
uv: {size: 2, data: new Float32Array([0, 0, 2, 0, 0, 2])},

@@ -147,3 +147,3 @@ });

attribute vec2 uv;
attribute vec3 position;
attribute vec2 position;

@@ -154,3 +154,3 @@ varying vec2 vUv;

vUv = uv;
gl_Position = vec4(position, 1.0);
gl_Position = vec4(position, 0, 1);
}

@@ -209,3 +209,3 @@ `,

- [x] Plane.js
- [x] Cube.js
- [x] Box.js
- [x] Sphere.js

@@ -220,2 +220,4 @@ - [x] Cylinder.js

- [ ] Curve.js
- [x] Flowmap.js
- [x] NormalProgram.js

@@ -230,3 +232,3 @@ ## Examples wishlist

Much inspired by ThreeJS' examples, they will serve as reference for how to achieve a wide range of techniques.
Inspired by the effectiveness of ThreeJS' examples, they will serve as reference for how to achieve a wide range of techniques.

@@ -280,3 +282,5 @@ For more advanced techniques, extra classes will be developed and contained within the 'Extras' folder of the framework.

- [ ] Distortion (refraction)
- [x] Post Fluid Distortion
- [ ] Effects - DOF (Depth Of Field) + light rays + tone mapping
- [x] GPGPU Particles (General-Purpose computing on Graphics Processing Units)

@@ -283,0 +287,0 @@ ### Animation

@@ -110,2 +110,6 @@ import {Transform} from './Transform.js';

frustumIntersectsMesh(node) {
// If no position attribute, treat as frustumCulled false
if (!node.geometry.attributes.position) return true;
if (!node.geometry.bounds || node.geometry.bounds.radius === Infinity) node.geometry.computeBoundingSphere();

@@ -112,0 +116,0 @@

@@ -15,1 +15,2 @@ // Extras

export {Flowmap} from './extras/Flowmap.js';
export {GPGPU} from './extras/GPGPU.js';
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