Skip to content

marcoaccardi/r3f_shaders_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A BOILERPLATE TO START WORKING WITH REACT-THREE-FIBER and Shaders, by using .glsl file instead of typing string inside react component by using glsl from "babel-plugin-glsl"

npm i npm start

this repo import .glsl files through raw-loader and glslify-loader add the object below to node_modules/react-scripts/config/webpack.config.js in the array "oneOf"

{ test: /\.(glsl|vs|fs|vert|frag)$/,
  exclude: /node_modules/,
  use: ["raw-loader", "glslify-loader"],
},

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published