akella / fake3d

515 stars 106 forks source link

Mime-type for GLSL shaders? #17

Closed michail-vestnik closed 2 years ago

michail-vestnik commented 2 years ago

Hi!

In src.js there are lines like this:

import fragment from './shaders/fragment.glsl';
import vertex from './shaders/vertex.glsl';

Please tell me which mime-type to pass to use GLSL as ES6 imports?

Дякую!

akella commented 2 years ago

they should be imported as strings