Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
threejs-glsl-loader
Advanced tools
A Webpack Loader that allows to load threejs inlined GLSL chunks.
A Webpack Loader that allows to load threejs inlined GLSL chunks.
ALPHA VERSION, Tested with Threejs r92
module: {
rules: [{
test: /\.(glsl|vert|frag)$/,
loader: 'threejs-glsl-loader',
// Default values (can be omitted)
options: {
chunksPath: '../ShaderChunk', // if chunk fails to load with provided path (relative), the loader will retry with this one before giving up
chunksExt: 'glsl', // Chunks extension, used when #import statement omits extension
}
}]
}
// The content of chunks/a-chunk.glsl file will be inlined here as string
// the loader will first try to load from the specified path (relative to the current glsl file)
// Please, do not specify `./` if the additional file you're going to load resides in the same directory,
// this will give an error. However, adding `../` will let you move to upper level folder to search required file in there.
#include chunks/a-chunk.glsl;
// This is how Three.js specifies its chunks in its .glsl files
// the loader will ignore <> characters and append chunksExt
// the loader will then try to load the chunk from the same folder as the current glsl file
// if this fails it will try to load the chunk from the specified chunksPath config argument
// the default '../ShaderChunk' value for chunksPath currently (three.js r92) maps to where chunks are located in three.js
#include <a-chunk>;
FAQs
A Webpack Loader that allows to load threejs inlined GLSL chunks.
The npm package threejs-glsl-loader receives a total of 9 weekly downloads. As such, threejs-glsl-loader popularity was classified as not popular.
We found that threejs-glsl-loader 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.