There is a line, it is:
import CustomShaderMaterial from 'three-custom-shader-material/vanilla'
When I run it I get error:
Uncaught TypeError: The specifier “three-custom-shader-material/vanilla” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “../” or “/”.
I need to modify the three-custom… part.
So that it works without npm.
It probably needs to be three/addons/… something.
I have googled it a lot but to no avail.
This is a sample code in Learnjs, 4th version. Chapter 4.
Does anybody know the import CustomShaderMaterial command i’m looking for?