ShaderMaterial and Stats components not working #62
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
good first issue
Good for newcomers
I tried to use ShaderMaterial but I am getting this error :
TypeError: Cannot set property 'texture1' of undefined at Proxy.initTexture (Texture.ts:48) at Proxy.refreshTexture (Texture.ts:54) at Proxy.created (Texture.ts:28)
Here is my template :
It works well with a BasicMaterial, like so :
I also tried with the default vertexShader and fragmentShader but it didn't work either. I am thinking that this might be related to this commit.
Also, the
Stats
component didn't work, getting this error :Failed to resolve import "stats.js" from "node_modules/troisjs/src/components/misc/Stats.js". Does the file exist?
. I copy pasted the import from the doc :import Stats from 'troisjs/src/components/misc/Stats'
(using vitejs for development).The text was updated successfully, but these errors were encountered: