New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

glsl-intersect

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glsl-intersect

GLSL Intersection Functions for Ray Tracing. Can be required from glslify.

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

glsl-intersect experimental

GLSL Intersection Functions for Ray Tracing. Can be required from glslify.

NPM

Usage

When using glslify, you can include the intersecion functions like so:


#pragma glslify: rayBox = require('glsl-intersect/3d/intersection/rayAABB')

void main() {
  vec2 result;
  bool test = rayBox(
    vec3(0.0, 0.0, 0.0),    //Ray Origin
    vec3(0.0, 1.0, 0.0),    //Ray Direction
    vec3(-2.0, 3.0, -5.0),  //Box Min Vertex
    vec3(2.0, 10.0, 5.0),   //Box Max Vertex
    result
  );
  //...
}

Development Progress

  • Basic 3D Intersection Function Implementations
  • Testing And Verification for 3D Functions
  • Basic 2D Intersection Function Implementations
  • Testing And Verification for 2D Functions
  • Complex Shape Intersection Functions

Keywords

glsl

FAQs

Package last updated on 03 Aug 2020

Did you know?

Socket

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.

Install

Related posts