From 2a0cd7e5b8b5a0b290cf4ee5eada06bc00ced592 Mon Sep 17 00:00:00 2001 From: Damien Seguin Date: Mon, 24 Dec 2018 23:44:58 +0000 Subject: [PATCH] Add template string syntax comment --- src/renderers/shaders/ShaderChunk/alphamap_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/alphamap_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/alphatest_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/aomap_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/aomap_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/begin_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/beginnormal_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/bsdfs.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/bumpmap_pars_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/clipping_planes_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/clipping_planes_pars_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/clipping_planes_pars_vertex.glsl.js | 2 +- .../shaders/ShaderChunk/clipping_planes_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/color_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/color_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/color_pars_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/color_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/common.glsl.js | 2 +- .../shaders/ShaderChunk/cube_uv_reflection_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl.js | 2 +- .../shaders/ShaderChunk/displacementmap_pars_vertex.glsl.js | 2 +- .../shaders/ShaderChunk/displacementmap_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/dithering_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/dithering_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/emissivemap_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/encodings_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/encodings_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/envmap_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/envmap_pars_vertex.glsl.js | 2 +- .../shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/envmap_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/fog_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/fog_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/fog_pars_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/fog_vertex.glsl.js | 2 +- .../shaders/ShaderChunk/gradientmap_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/lightmap_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/lights_fragment_end.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/lights_lambert_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/lights_pars_begin.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/lights_phong_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/lights_phong_pars_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/lights_physical_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/map_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/map_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/map_particle_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/map_particle_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/metalnessmap_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/metalnessmap_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/morphnormal_vertex.glsl.js | 2 +- .../shaders/ShaderChunk/morphtarget_pars_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/morphtarget_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/normal_fragment_begin.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/normal_fragment_maps.glsl.js | 2 +- .../shaders/ShaderChunk/normalmap_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/packing.glsl.js | 2 +- .../shaders/ShaderChunk/premultiplied_alpha_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/project_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/roughnessmap_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/roughnessmap_pars_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/shadowmap_pars_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/shadowmap_vertex.glsl.js | 2 +- .../shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/skinbase_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/skinning_pars_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/skinning_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/skinnormal_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/specularmap_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/specularmap_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/tonemapping_fragment.glsl.js | 2 +- .../shaders/ShaderChunk/tonemapping_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/uv2_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/uv2_pars_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/uv2_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/uv_pars_fragment.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/uv_pars_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/uv_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderChunk/worldpos_vertex.glsl.js | 2 +- src/renderers/shaders/ShaderLib/background_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/background_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/cube_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/cube_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/depth_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/depth_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/distanceRGBA_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/distanceRGBA_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/equirect_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/equirect_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/linedashed_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/linedashed_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/meshbasic_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/meshbasic_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/meshlambert_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/meshlambert_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/meshmatcap_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/meshmatcap_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/meshphong_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/meshphong_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/meshphysical_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/meshphysical_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/normal_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/normal_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/points_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/points_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/shadow_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/shadow_vert.glsl.js | 2 +- src/renderers/shaders/ShaderLib/sprite_frag.glsl.js | 2 +- src/renderers/shaders/ShaderLib/sprite_vert.glsl.js | 2 +- 119 files changed, 119 insertions(+), 119 deletions(-) diff --git a/src/renderers/shaders/ShaderChunk/alphamap_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/alphamap_fragment.glsl.js index 1e14d09d359540..81c5796588a2e2 100644 --- a/src/renderers/shaders/ShaderChunk/alphamap_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/alphamap_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, vUv ).g; diff --git a/src/renderers/shaders/ShaderChunk/alphamap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/alphamap_pars_fragment.glsl.js index b367061910d43a..ae6f46deaa8d8a 100644 --- a/src/renderers/shaders/ShaderChunk/alphamap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/alphamap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; diff --git a/src/renderers/shaders/ShaderChunk/alphatest_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/alphatest_fragment.glsl.js index b700c3ceb7b1c2..5ad0429f687fda 100644 --- a/src/renderers/shaders/ShaderChunk/alphatest_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/alphatest_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef ALPHATEST if ( diffuseColor.a < ALPHATEST ) discard; diff --git a/src/renderers/shaders/ShaderChunk/aomap_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/aomap_fragment.glsl.js index 17e6fa4d477a9e..3c15d332218ee7 100644 --- a/src/renderers/shaders/ShaderChunk/aomap_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/aomap_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_AOMAP // reads channel R, compatible with a combined OcclusionRoughnessMetallic (RGB) texture diff --git a/src/renderers/shaders/ShaderChunk/aomap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/aomap_pars_fragment.glsl.js index dd2bd323ac8c5b..7c2eadc7ed8d2a 100644 --- a/src/renderers/shaders/ShaderChunk/aomap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/aomap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_AOMAP uniform sampler2D aoMap; diff --git a/src/renderers/shaders/ShaderChunk/begin_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/begin_vertex.glsl.js index b54c5e0fedb50e..9777ba0bb7fe63 100644 --- a/src/renderers/shaders/ShaderChunk/begin_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/begin_vertex.glsl.js @@ -1,3 +1,3 @@ -export default ` +export default /* glsl */` vec3 transformed = vec3( position ); `; diff --git a/src/renderers/shaders/ShaderChunk/beginnormal_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/beginnormal_vertex.glsl.js index a91b59c550c335..f76965917952a0 100644 --- a/src/renderers/shaders/ShaderChunk/beginnormal_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/beginnormal_vertex.glsl.js @@ -1,3 +1,3 @@ -export default ` +export default /* glsl */` vec3 objectNormal = vec3( normal ); `; diff --git a/src/renderers/shaders/ShaderChunk/bsdfs.glsl.js b/src/renderers/shaders/ShaderChunk/bsdfs.glsl.js index 67ba937a214ef6..c238cebec49a65 100644 --- a/src/renderers/shaders/ShaderChunk/bsdfs.glsl.js +++ b/src/renderers/shaders/ShaderChunk/bsdfs.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` float punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { #if defined ( PHYSICALLY_CORRECT_LIGHTS ) diff --git a/src/renderers/shaders/ShaderChunk/bumpmap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/bumpmap_pars_fragment.glsl.js index 48b0db1a49e62f..a3d05938d3b4cd 100644 --- a/src/renderers/shaders/ShaderChunk/bumpmap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/bumpmap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_BUMPMAP uniform sampler2D bumpMap; diff --git a/src/renderers/shaders/ShaderChunk/clipping_planes_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/clipping_planes_fragment.glsl.js index 837c12158681c2..72a77ba1b834ce 100644 --- a/src/renderers/shaders/ShaderChunk/clipping_planes_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/clipping_planes_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if NUM_CLIPPING_PLANES > 0 vec4 plane; diff --git a/src/renderers/shaders/ShaderChunk/clipping_planes_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/clipping_planes_pars_fragment.glsl.js index 7878bbc982d760..ccdd963fcba8a1 100644 --- a/src/renderers/shaders/ShaderChunk/clipping_planes_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/clipping_planes_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if NUM_CLIPPING_PLANES > 0 #if ! defined( PHYSICAL ) && ! defined( PHONG ) && ! defined( MATCAP ) diff --git a/src/renderers/shaders/ShaderChunk/clipping_planes_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/clipping_planes_pars_vertex.glsl.js index f143239d6fd7dc..44ade682b25dfc 100644 --- a/src/renderers/shaders/ShaderChunk/clipping_planes_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/clipping_planes_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG ) && ! defined( MATCAP ) varying vec3 vViewPosition; #endif diff --git a/src/renderers/shaders/ShaderChunk/clipping_planes_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/clipping_planes_vertex.glsl.js index d4b572e8b2e44f..68862d3b1af805 100644 --- a/src/renderers/shaders/ShaderChunk/clipping_planes_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/clipping_planes_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG ) && ! defined( MATCAP ) vViewPosition = - mvPosition.xyz; #endif diff --git a/src/renderers/shaders/ShaderChunk/color_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/color_fragment.glsl.js index 101935bcc9d89c..6b62d5429f8ad3 100644 --- a/src/renderers/shaders/ShaderChunk/color_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/color_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_COLOR diffuseColor.rgb *= vColor; diff --git a/src/renderers/shaders/ShaderChunk/color_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/color_pars_fragment.glsl.js index e3546578befb6b..d006578261ea2e 100644 --- a/src/renderers/shaders/ShaderChunk/color_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/color_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_COLOR varying vec3 vColor; diff --git a/src/renderers/shaders/ShaderChunk/color_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/color_pars_vertex.glsl.js index e3546578befb6b..d006578261ea2e 100644 --- a/src/renderers/shaders/ShaderChunk/color_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/color_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_COLOR varying vec3 vColor; diff --git a/src/renderers/shaders/ShaderChunk/color_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/color_vertex.glsl.js index 7e1af89bace3e5..9bb6d738ae64b4 100644 --- a/src/renderers/shaders/ShaderChunk/color_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/color_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_COLOR vColor.xyz = color.xyz; diff --git a/src/renderers/shaders/ShaderChunk/common.glsl.js b/src/renderers/shaders/ShaderChunk/common.glsl.js index 6e7cd5e6747801..7199b4dfe04d50 100644 --- a/src/renderers/shaders/ShaderChunk/common.glsl.js +++ b/src/renderers/shaders/ShaderChunk/common.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define PI 3.14159265359 #define PI2 6.28318530718 #define PI_HALF 1.5707963267949 diff --git a/src/renderers/shaders/ShaderChunk/cube_uv_reflection_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/cube_uv_reflection_fragment.glsl.js index 3100f4ffcef28f..ca8711068ea14a 100644 --- a/src/renderers/shaders/ShaderChunk/cube_uv_reflection_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/cube_uv_reflection_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_textureSize (1024.0) diff --git a/src/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl.js index be0cd837181415..671f9328b7ba39 100644 --- a/src/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` vec3 transformedNormal = normalMatrix * objectNormal; #ifdef FLIP_SIDED diff --git a/src/renderers/shaders/ShaderChunk/displacementmap_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/displacementmap_pars_vertex.glsl.js index 5a309b0df7f02c..b8ac0759a92ee4 100644 --- a/src/renderers/shaders/ShaderChunk/displacementmap_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/displacementmap_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; diff --git a/src/renderers/shaders/ShaderChunk/displacementmap_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/displacementmap_vertex.glsl.js index 714558514b0200..2349e2535f0738 100644 --- a/src/renderers/shaders/ShaderChunk/displacementmap_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/displacementmap_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias ); diff --git a/src/renderers/shaders/ShaderChunk/dithering_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/dithering_fragment.glsl.js index 9637aa1739d1b6..1d6d4a7fcaffea 100644 --- a/src/renderers/shaders/ShaderChunk/dithering_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/dithering_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( DITHERING ) gl_FragColor.rgb = dithering( gl_FragColor.rgb ); diff --git a/src/renderers/shaders/ShaderChunk/dithering_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/dithering_pars_fragment.glsl.js index fd388424abba9c..da654f1233687d 100644 --- a/src/renderers/shaders/ShaderChunk/dithering_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/dithering_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( DITHERING ) // based on https://www.shadertoy.com/view/MslGR8 diff --git a/src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl.js index e15111610b8155..3c2855627971fd 100644 --- a/src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vUv ); diff --git a/src/renderers/shaders/ShaderChunk/emissivemap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/emissivemap_pars_fragment.glsl.js index c2809b4d5ad0fb..3a9b02d6127180 100644 --- a/src/renderers/shaders/ShaderChunk/emissivemap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/emissivemap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; diff --git a/src/renderers/shaders/ShaderChunk/encodings_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/encodings_fragment.glsl.js index e33965e1018830..731e05e38d3a51 100644 --- a/src/renderers/shaders/ShaderChunk/encodings_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/encodings_fragment.glsl.js @@ -1,3 +1,3 @@ -export default ` +export default /* glsl */` gl_FragColor = linearToOutputTexel( gl_FragColor ); `; diff --git a/src/renderers/shaders/ShaderChunk/encodings_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/encodings_pars_fragment.glsl.js index f44e9bc735b27b..c9537b82fba632 100644 --- a/src/renderers/shaders/ShaderChunk/encodings_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/encodings_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` // For a discussion of what this is, please read this: http://lousodrome.net/blog/light/2013/05/26/gamma-correct-and-hdr-rendering-in-a-32-bits-buffer/ vec4 LinearToLinear( in vec4 value ) { diff --git a/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js index f047a0e3429678..a606115946529d 100644 --- a/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) diff --git a/src/renderers/shaders/ShaderChunk/envmap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/envmap_pars_fragment.glsl.js index fc2d99f2d3332b..ee33c62289d97c 100644 --- a/src/renderers/shaders/ShaderChunk/envmap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/envmap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_ENVMAP ) || defined( PHYSICAL ) uniform float reflectivity; uniform float envMapIntensity; diff --git a/src/renderers/shaders/ShaderChunk/envmap_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/envmap_pars_vertex.glsl.js index 7bbd06263747d2..ee79c220ea654e 100644 --- a/src/renderers/shaders/ShaderChunk/envmap_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/envmap_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) diff --git a/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js index 1e8591768d1058..d319e9b88dc0c5 100644 --- a/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_ENVMAP ) && defined( PHYSICAL ) vec3 getLightProbeIndirectIrradiance( /*const in SpecularLightProbe specularLightProbe,*/ const in GeometricContext geometry, const in int maxMIPLevel ) { diff --git a/src/renderers/shaders/ShaderChunk/envmap_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/envmap_vertex.glsl.js index 946744f0340e73..ba94677ceda0e2 100644 --- a/src/renderers/shaders/ShaderChunk/envmap_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/envmap_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) diff --git a/src/renderers/shaders/ShaderChunk/fog_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/fog_fragment.glsl.js index dbb1c3193def0f..24dc2fba66dde5 100644 --- a/src/renderers/shaders/ShaderChunk/fog_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/fog_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_FOG #ifdef FOG_EXP2 diff --git a/src/renderers/shaders/ShaderChunk/fog_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/fog_pars_fragment.glsl.js index 479032a6911c2b..808c7c55cc222a 100644 --- a/src/renderers/shaders/ShaderChunk/fog_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/fog_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_FOG uniform vec3 fogColor; diff --git a/src/renderers/shaders/ShaderChunk/fog_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/fog_pars_vertex.glsl.js index 4c4fa78a1f1123..284d460f48543b 100644 --- a/src/renderers/shaders/ShaderChunk/fog_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/fog_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_FOG varying float fogDepth; diff --git a/src/renderers/shaders/ShaderChunk/fog_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/fog_vertex.glsl.js index 09c2d054e61b2f..ecfc773911a311 100644 --- a/src/renderers/shaders/ShaderChunk/fog_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/fog_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_FOG fogDepth = -mvPosition.z; diff --git a/src/renderers/shaders/ShaderChunk/gradientmap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/gradientmap_pars_fragment.glsl.js index 574b2d97509ec5..d8ccc5b6818c59 100644 --- a/src/renderers/shaders/ShaderChunk/gradientmap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/gradientmap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef TOON uniform sampler2D gradientMap; diff --git a/src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl.js index 08be52f5ebae7c..7cf7cbd00f24bd 100644 --- a/src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_LIGHTMAP reflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity; // factor of PI should not be present; included here to prevent breakage diff --git a/src/renderers/shaders/ShaderChunk/lightmap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/lightmap_pars_fragment.glsl.js index 3821900a7c11f4..f5fd898d22b81d 100644 --- a/src/renderers/shaders/ShaderChunk/lightmap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lightmap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_LIGHTMAP uniform sampler2D lightMap; diff --git a/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js b/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js index 5f16274528959c..1690061044c64e 100644 --- a/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` /** * This is a template that can be used to light a material, it uses pluggable * RenderEquations (RE)for specific lighting scenarios. diff --git a/src/renderers/shaders/ShaderChunk/lights_fragment_end.glsl.js b/src/renderers/shaders/ShaderChunk/lights_fragment_end.glsl.js index 71ad4373afad22..f9f8dc08642160 100644 --- a/src/renderers/shaders/ShaderChunk/lights_fragment_end.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lights_fragment_end.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometry, material, reflectedLight ); diff --git a/src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js b/src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js index 8f498fd6ea1a8b..65e2fb076b7f62 100644 --- a/src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP diff --git a/src/renderers/shaders/ShaderChunk/lights_lambert_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/lights_lambert_vertex.glsl.js index a144e1ee54664b..00ccb22dd6feef 100644 --- a/src/renderers/shaders/ShaderChunk/lights_lambert_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lights_lambert_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` vec3 diffuse = vec3( 1.0 ); GeometricContext geometry; diff --git a/src/renderers/shaders/ShaderChunk/lights_pars_begin.glsl.js b/src/renderers/shaders/ShaderChunk/lights_pars_begin.glsl.js index 5005dfc1f545f4..2acaa3b91f4e68 100644 --- a/src/renderers/shaders/ShaderChunk/lights_pars_begin.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lights_pars_begin.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform vec3 ambientLightColor; vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { diff --git a/src/renderers/shaders/ShaderChunk/lights_phong_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/lights_phong_fragment.glsl.js index b6831daa2da94a..b9cfe42148bd1a 100644 --- a/src/renderers/shaders/ShaderChunk/lights_phong_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lights_phong_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; diff --git a/src/renderers/shaders/ShaderChunk/lights_phong_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/lights_phong_pars_fragment.glsl.js index d84e55f816375e..e4e01e9f188b58 100644 --- a/src/renderers/shaders/ShaderChunk/lights_phong_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lights_phong_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` varying vec3 vViewPosition; #ifndef FLAT_SHADED diff --git a/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js index b7bab8ff516347..a9628deed45599 100644 --- a/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); material.specularRoughness = clamp( roughnessFactor, 0.04, 1.0 ); diff --git a/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js index 325e1b8b71526f..dda0f3db872c68 100644 --- a/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` struct PhysicalMaterial { vec3 diffuseColor; diff --git a/src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js index a0f1d70164e776..723396878d8f89 100644 --- a/src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) gl_FragDepthEXT = log2( vFragDepth ) * logDepthBufFC * 0.5; diff --git a/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js index b20070f0532e03..2e4417d4065585 100644 --- a/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) uniform float logDepthBufFC; diff --git a/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js index 3a05ef568b509d..748289ea356e78 100644 --- a/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT diff --git a/src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js index ac48335244e359..1631661a9bfa38 100644 --- a/src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT diff --git a/src/renderers/shaders/ShaderChunk/map_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/map_fragment.glsl.js index bf82ddd1292686..5938668d59c7c7 100644 --- a/src/renderers/shaders/ShaderChunk/map_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/map_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_MAP vec4 texelColor = texture2D( map, vUv ); diff --git a/src/renderers/shaders/ShaderChunk/map_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/map_pars_fragment.glsl.js index 81a39d3c7291d6..3410bc3c59c0d2 100644 --- a/src/renderers/shaders/ShaderChunk/map_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/map_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_MAP uniform sampler2D map; diff --git a/src/renderers/shaders/ShaderChunk/map_particle_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/map_particle_fragment.glsl.js index d954e10059089d..20dbaab554164b 100644 --- a/src/renderers/shaders/ShaderChunk/map_particle_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/map_particle_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_MAP vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; diff --git a/src/renderers/shaders/ShaderChunk/map_particle_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/map_particle_pars_fragment.glsl.js index f092102869519f..3bf8eb007280ef 100644 --- a/src/renderers/shaders/ShaderChunk/map_particle_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/map_particle_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_MAP uniform mat3 uvTransform; diff --git a/src/renderers/shaders/ShaderChunk/metalnessmap_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/metalnessmap_fragment.glsl.js index d5b92c2f8514f6..0cac7d113cffad 100644 --- a/src/renderers/shaders/ShaderChunk/metalnessmap_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/metalnessmap_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` float metalnessFactor = metalness; #ifdef USE_METALNESSMAP diff --git a/src/renderers/shaders/ShaderChunk/metalnessmap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/metalnessmap_pars_fragment.glsl.js index dc89b8718cad95..ac89c0b371d29e 100644 --- a/src/renderers/shaders/ShaderChunk/metalnessmap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/metalnessmap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; diff --git a/src/renderers/shaders/ShaderChunk/morphnormal_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/morphnormal_vertex.glsl.js index dfaf402d90b95f..c1c633a5260632 100644 --- a/src/renderers/shaders/ShaderChunk/morphnormal_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/morphnormal_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_MORPHNORMALS objectNormal += ( morphNormal0 - normal ) * morphTargetInfluences[ 0 ]; diff --git a/src/renderers/shaders/ShaderChunk/morphtarget_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/morphtarget_pars_vertex.glsl.js index 83436b845f3849..0f59c2147f7b68 100644 --- a/src/renderers/shaders/ShaderChunk/morphtarget_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/morphtarget_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_MORPHTARGETS #ifndef USE_MORPHNORMALS diff --git a/src/renderers/shaders/ShaderChunk/morphtarget_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/morphtarget_vertex.glsl.js index caa63e95a3dac9..5c33df864d9698 100644 --- a/src/renderers/shaders/ShaderChunk/morphtarget_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/morphtarget_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_MORPHTARGETS transformed += ( morphTarget0 - position ) * morphTargetInfluences[ 0 ]; diff --git a/src/renderers/shaders/ShaderChunk/normal_fragment_begin.glsl.js b/src/renderers/shaders/ShaderChunk/normal_fragment_begin.glsl.js index 49bca23507b6a0..4cbfb3d388063f 100644 --- a/src/renderers/shaders/ShaderChunk/normal_fragment_begin.glsl.js +++ b/src/renderers/shaders/ShaderChunk/normal_fragment_begin.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef FLAT_SHADED // Workaround for Adreno/Nexus5 not able able to do dFdx( vViewPosition ) ... diff --git a/src/renderers/shaders/ShaderChunk/normal_fragment_maps.glsl.js b/src/renderers/shaders/ShaderChunk/normal_fragment_maps.glsl.js index 1fe0da13117ad3..cdcfc9e522e960 100644 --- a/src/renderers/shaders/ShaderChunk/normal_fragment_maps.glsl.js +++ b/src/renderers/shaders/ShaderChunk/normal_fragment_maps.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_NORMALMAP #ifdef OBJECTSPACE_NORMALMAP diff --git a/src/renderers/shaders/ShaderChunk/normalmap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/normalmap_pars_fragment.glsl.js index 82afb620a979a8..b645306e54f6ff 100644 --- a/src/renderers/shaders/ShaderChunk/normalmap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/normalmap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_NORMALMAP uniform sampler2D normalMap; diff --git a/src/renderers/shaders/ShaderChunk/packing.glsl.js b/src/renderers/shaders/ShaderChunk/packing.glsl.js index b6c021249e8f51..19a5abf7eaae68 100644 --- a/src/renderers/shaders/ShaderChunk/packing.glsl.js +++ b/src/renderers/shaders/ShaderChunk/packing.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } diff --git a/src/renderers/shaders/ShaderChunk/premultiplied_alpha_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/premultiplied_alpha_fragment.glsl.js index be64123a9f70ae..a183739943b958 100644 --- a/src/renderers/shaders/ShaderChunk/premultiplied_alpha_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/premultiplied_alpha_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef PREMULTIPLIED_ALPHA // Get get normal blending with premultipled, use with CustomBlending, OneFactor, OneMinusSrcAlphaFactor, AddEquation. diff --git a/src/renderers/shaders/ShaderChunk/project_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/project_vertex.glsl.js index bd7b05bd2613e6..54416c502f73d7 100644 --- a/src/renderers/shaders/ShaderChunk/project_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/project_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` vec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 ); gl_Position = projectionMatrix * mvPosition; diff --git a/src/renderers/shaders/ShaderChunk/roughnessmap_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/roughnessmap_fragment.glsl.js index d63d81c47adf15..db5b69872b35de 100644 --- a/src/renderers/shaders/ShaderChunk/roughnessmap_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/roughnessmap_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP diff --git a/src/renderers/shaders/ShaderChunk/roughnessmap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/roughnessmap_pars_fragment.glsl.js index 3cd4cefb3f6b98..cea3ecd812cd48 100644 --- a/src/renderers/shaders/ShaderChunk/roughnessmap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/roughnessmap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; diff --git a/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js index d1fa4b7d90cedb..0a9b16174a10d3 100644 --- a/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHTS > 0 diff --git a/src/renderers/shaders/ShaderChunk/shadowmap_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/shadowmap_pars_vertex.glsl.js index d5ccceb20ebde1..990521088de103 100644 --- a/src/renderers/shaders/ShaderChunk/shadowmap_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/shadowmap_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHTS > 0 diff --git a/src/renderers/shaders/ShaderChunk/shadowmap_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/shadowmap_vertex.glsl.js index ad526095a8b4d5..b8549a03b0f084 100644 --- a/src/renderers/shaders/ShaderChunk/shadowmap_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/shadowmap_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHTS > 0 diff --git a/src/renderers/shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js index 8015ee54911591..a81f6dd87da5d2 100644 --- a/src/renderers/shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` float getShadowMask() { float shadow = 1.0; diff --git a/src/renderers/shaders/ShaderChunk/skinbase_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/skinbase_vertex.glsl.js index ec5cf6d5d85336..17d8f40acbefeb 100644 --- a/src/renderers/shaders/ShaderChunk/skinbase_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/skinbase_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); diff --git a/src/renderers/shaders/ShaderChunk/skinning_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/skinning_pars_vertex.glsl.js index 464874de9a6a58..0b972c0f126eee 100644 --- a/src/renderers/shaders/ShaderChunk/skinning_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/skinning_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_SKINNING uniform mat4 bindMatrix; diff --git a/src/renderers/shaders/ShaderChunk/skinning_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/skinning_vertex.glsl.js index adedd5ea89de96..a07418c4798f42 100644 --- a/src/renderers/shaders/ShaderChunk/skinning_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/skinning_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); diff --git a/src/renderers/shaders/ShaderChunk/skinnormal_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/skinnormal_vertex.glsl.js index 734afef42ccb3e..5b833c4e33ed71 100644 --- a/src/renderers/shaders/ShaderChunk/skinnormal_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/skinnormal_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); diff --git a/src/renderers/shaders/ShaderChunk/specularmap_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/specularmap_fragment.glsl.js index 8ee476cf2f58b3..9f7cf8383b10b6 100644 --- a/src/renderers/shaders/ShaderChunk/specularmap_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/specularmap_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` float specularStrength; #ifdef USE_SPECULARMAP diff --git a/src/renderers/shaders/ShaderChunk/specularmap_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/specularmap_pars_fragment.glsl.js index 71ab24f7f15295..bead42d2cfd5ea 100644 --- a/src/renderers/shaders/ShaderChunk/specularmap_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/specularmap_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifdef USE_SPECULARMAP uniform sampler2D specularMap; diff --git a/src/renderers/shaders/ShaderChunk/tonemapping_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/tonemapping_fragment.glsl.js index b7ed3149a1bc4f..281d063320e56b 100644 --- a/src/renderers/shaders/ShaderChunk/tonemapping_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/tonemapping_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); diff --git a/src/renderers/shaders/ShaderChunk/tonemapping_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/tonemapping_pars_fragment.glsl.js index 53c11f89255c4e..09322f12a4bb6a 100644 --- a/src/renderers/shaders/ShaderChunk/tonemapping_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/tonemapping_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #ifndef saturate #define saturate(a) clamp( a, 0.0, 1.0 ) #endif diff --git a/src/renderers/shaders/ShaderChunk/uv2_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/uv2_pars_fragment.glsl.js index d46a2ed0e55225..c9e03d04381403 100644 --- a/src/renderers/shaders/ShaderChunk/uv2_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/uv2_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) varying vec2 vUv2; diff --git a/src/renderers/shaders/ShaderChunk/uv2_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/uv2_pars_vertex.glsl.js index 8f28f11aee7630..6a5a7716769121 100644 --- a/src/renderers/shaders/ShaderChunk/uv2_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/uv2_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) attribute vec2 uv2; diff --git a/src/renderers/shaders/ShaderChunk/uv2_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/uv2_vertex.glsl.js index a26d8367c02e78..0c9fb86482df04 100644 --- a/src/renderers/shaders/ShaderChunk/uv2_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/uv2_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) vUv2 = uv2; diff --git a/src/renderers/shaders/ShaderChunk/uv_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/uv_pars_fragment.glsl.js index 130411e611f192..3b8d5d675eff12 100644 --- a/src/renderers/shaders/ShaderChunk/uv_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/uv_pars_fragment.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP ) varying vec2 vUv; diff --git a/src/renderers/shaders/ShaderChunk/uv_pars_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/uv_pars_vertex.glsl.js index 874ac20764557f..d1bd641d58a171 100644 --- a/src/renderers/shaders/ShaderChunk/uv_pars_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/uv_pars_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP ) varying vec2 vUv; diff --git a/src/renderers/shaders/ShaderChunk/uv_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/uv_vertex.glsl.js index 43706e31e9a7ef..1a923a507eb047 100644 --- a/src/renderers/shaders/ShaderChunk/uv_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/uv_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP ) vUv = ( uvTransform * vec3( uv, 1 ) ).xy; diff --git a/src/renderers/shaders/ShaderChunk/worldpos_vertex.glsl.js b/src/renderers/shaders/ShaderChunk/worldpos_vertex.glsl.js index 05b7f02009452b..2bf384df7501fe 100644 --- a/src/renderers/shaders/ShaderChunk/worldpos_vertex.glsl.js +++ b/src/renderers/shaders/ShaderChunk/worldpos_vertex.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) vec4 worldPosition = modelMatrix * vec4( transformed, 1.0 ); diff --git a/src/renderers/shaders/ShaderLib/background_frag.glsl.js b/src/renderers/shaders/ShaderLib/background_frag.glsl.js index fd2f91cdfb282f..45ced1292106ca 100644 --- a/src/renderers/shaders/ShaderLib/background_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/background_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform sampler2D t2D; varying vec2 vUv; diff --git a/src/renderers/shaders/ShaderLib/background_vert.glsl.js b/src/renderers/shaders/ShaderLib/background_vert.glsl.js index bfd82ce7e11278..49f6d64e6d43f7 100644 --- a/src/renderers/shaders/ShaderLib/background_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/background_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` varying vec2 vUv; uniform mat3 uvTransform; diff --git a/src/renderers/shaders/ShaderLib/cube_frag.glsl.js b/src/renderers/shaders/ShaderLib/cube_frag.glsl.js index 0fa5ecdaddc1b6..0a53ba08ec8830 100644 --- a/src/renderers/shaders/ShaderLib/cube_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/cube_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform samplerCube tCube; uniform float tFlip; uniform float opacity; diff --git a/src/renderers/shaders/ShaderLib/cube_vert.glsl.js b/src/renderers/shaders/ShaderLib/cube_vert.glsl.js index 2a64add2326ca6..66f1c4302c7614 100644 --- a/src/renderers/shaders/ShaderLib/cube_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/cube_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` varying vec3 vWorldDirection; #include diff --git a/src/renderers/shaders/ShaderLib/depth_frag.glsl.js b/src/renderers/shaders/ShaderLib/depth_frag.glsl.js index 3b6ba8b44816c3..c1a75b1caf9c8a 100644 --- a/src/renderers/shaders/ShaderLib/depth_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/depth_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #if DEPTH_PACKING == 3200 uniform float opacity; diff --git a/src/renderers/shaders/ShaderLib/depth_vert.glsl.js b/src/renderers/shaders/ShaderLib/depth_vert.glsl.js index 34e4ba127ef60d..4705257b0601cf 100644 --- a/src/renderers/shaders/ShaderLib/depth_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/depth_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #include #include #include diff --git a/src/renderers/shaders/ShaderLib/distanceRGBA_frag.glsl.js b/src/renderers/shaders/ShaderLib/distanceRGBA_frag.glsl.js index d418988c91088e..7c78545b38e00f 100644 --- a/src/renderers/shaders/ShaderLib/distanceRGBA_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/distanceRGBA_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define DISTANCE uniform vec3 referencePosition; diff --git a/src/renderers/shaders/ShaderLib/distanceRGBA_vert.glsl.js b/src/renderers/shaders/ShaderLib/distanceRGBA_vert.glsl.js index dbccee1a26d224..6610c28cb54af1 100644 --- a/src/renderers/shaders/ShaderLib/distanceRGBA_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/distanceRGBA_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define DISTANCE varying vec3 vWorldPosition; diff --git a/src/renderers/shaders/ShaderLib/equirect_frag.glsl.js b/src/renderers/shaders/ShaderLib/equirect_frag.glsl.js index ff59a32f307d8a..52269daba1b8da 100644 --- a/src/renderers/shaders/ShaderLib/equirect_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/equirect_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform sampler2D tEquirect; varying vec3 vWorldDirection; diff --git a/src/renderers/shaders/ShaderLib/equirect_vert.glsl.js b/src/renderers/shaders/ShaderLib/equirect_vert.glsl.js index 3c248d7b1dd062..dc86f3bde5671d 100644 --- a/src/renderers/shaders/ShaderLib/equirect_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/equirect_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` varying vec3 vWorldDirection; #include diff --git a/src/renderers/shaders/ShaderLib/linedashed_frag.glsl.js b/src/renderers/shaders/ShaderLib/linedashed_frag.glsl.js index dfbc9f81f10e88..9942f531d51e17 100644 --- a/src/renderers/shaders/ShaderLib/linedashed_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/linedashed_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform vec3 diffuse; uniform float opacity; diff --git a/src/renderers/shaders/ShaderLib/linedashed_vert.glsl.js b/src/renderers/shaders/ShaderLib/linedashed_vert.glsl.js index a76068f364d8ea..4a7a7a4b74742d 100644 --- a/src/renderers/shaders/ShaderLib/linedashed_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/linedashed_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform float scale; attribute float lineDistance; diff --git a/src/renderers/shaders/ShaderLib/meshbasic_frag.glsl.js b/src/renderers/shaders/ShaderLib/meshbasic_frag.glsl.js index 06266db41da152..34b5135b7bf500 100644 --- a/src/renderers/shaders/ShaderLib/meshbasic_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/meshbasic_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform vec3 diffuse; uniform float opacity; diff --git a/src/renderers/shaders/ShaderLib/meshbasic_vert.glsl.js b/src/renderers/shaders/ShaderLib/meshbasic_vert.glsl.js index 76392e9fc26bdb..4e00da54054b84 100644 --- a/src/renderers/shaders/ShaderLib/meshbasic_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/meshbasic_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #include #include #include diff --git a/src/renderers/shaders/ShaderLib/meshlambert_frag.glsl.js b/src/renderers/shaders/ShaderLib/meshlambert_frag.glsl.js index b8b46e290000a8..e1d6260f82eb68 100644 --- a/src/renderers/shaders/ShaderLib/meshlambert_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/meshlambert_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; diff --git a/src/renderers/shaders/ShaderLib/meshlambert_vert.glsl.js b/src/renderers/shaders/ShaderLib/meshlambert_vert.glsl.js index faacfb647387d8..a026d97ebc1561 100644 --- a/src/renderers/shaders/ShaderLib/meshlambert_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/meshlambert_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define LAMBERT varying vec3 vLightFront; diff --git a/src/renderers/shaders/ShaderLib/meshmatcap_frag.glsl.js b/src/renderers/shaders/ShaderLib/meshmatcap_frag.glsl.js index 3b8845f18b246e..b1e4bbefb655f4 100644 --- a/src/renderers/shaders/ShaderLib/meshmatcap_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/meshmatcap_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define MATCAP uniform vec3 diffuse; diff --git a/src/renderers/shaders/ShaderLib/meshmatcap_vert.glsl.js b/src/renderers/shaders/ShaderLib/meshmatcap_vert.glsl.js index 3b8028e11366b5..3ef9252f9d40ae 100644 --- a/src/renderers/shaders/ShaderLib/meshmatcap_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/meshmatcap_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define MATCAP varying vec3 vViewPosition; diff --git a/src/renderers/shaders/ShaderLib/meshphong_frag.glsl.js b/src/renderers/shaders/ShaderLib/meshphong_frag.glsl.js index 54ea2b7a32aa6b..498f569258f330 100644 --- a/src/renderers/shaders/ShaderLib/meshphong_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/meshphong_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define PHONG uniform vec3 diffuse; diff --git a/src/renderers/shaders/ShaderLib/meshphong_vert.glsl.js b/src/renderers/shaders/ShaderLib/meshphong_vert.glsl.js index 66d98f815707e3..10588905821ea7 100644 --- a/src/renderers/shaders/ShaderLib/meshphong_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/meshphong_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define PHONG varying vec3 vViewPosition; diff --git a/src/renderers/shaders/ShaderLib/meshphysical_frag.glsl.js b/src/renderers/shaders/ShaderLib/meshphysical_frag.glsl.js index e119d4d1f0f9eb..4a5dde0bd7ee7b 100644 --- a/src/renderers/shaders/ShaderLib/meshphysical_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/meshphysical_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define PHYSICAL uniform vec3 diffuse; diff --git a/src/renderers/shaders/ShaderLib/meshphysical_vert.glsl.js b/src/renderers/shaders/ShaderLib/meshphysical_vert.glsl.js index 05cda71f384a45..2d6b4b3ee2d993 100644 --- a/src/renderers/shaders/ShaderLib/meshphysical_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/meshphysical_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define PHYSICAL varying vec3 vViewPosition; diff --git a/src/renderers/shaders/ShaderLib/normal_frag.glsl.js b/src/renderers/shaders/ShaderLib/normal_frag.glsl.js index 3c8cc46b6858b9..df890a26843ed2 100644 --- a/src/renderers/shaders/ShaderLib/normal_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/normal_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define NORMAL uniform float opacity; diff --git a/src/renderers/shaders/ShaderLib/normal_vert.glsl.js b/src/renderers/shaders/ShaderLib/normal_vert.glsl.js index 0b4ddd539a1884..b2543f046ecb7f 100644 --- a/src/renderers/shaders/ShaderLib/normal_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/normal_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) ) diff --git a/src/renderers/shaders/ShaderLib/points_frag.glsl.js b/src/renderers/shaders/ShaderLib/points_frag.glsl.js index 5e38c027b09b1c..68ecdfe2f8e588 100644 --- a/src/renderers/shaders/ShaderLib/points_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/points_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform vec3 diffuse; uniform float opacity; diff --git a/src/renderers/shaders/ShaderLib/points_vert.glsl.js b/src/renderers/shaders/ShaderLib/points_vert.glsl.js index 30d521ebc94113..58240755c75e56 100644 --- a/src/renderers/shaders/ShaderLib/points_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/points_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform float size; uniform float scale; diff --git a/src/renderers/shaders/ShaderLib/shadow_frag.glsl.js b/src/renderers/shaders/ShaderLib/shadow_frag.glsl.js index 1c2ba0bf1dc7c0..457ab748c4daf3 100644 --- a/src/renderers/shaders/ShaderLib/shadow_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/shadow_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform vec3 color; uniform float opacity; diff --git a/src/renderers/shaders/ShaderLib/shadow_vert.glsl.js b/src/renderers/shaders/ShaderLib/shadow_vert.glsl.js index 1a15fe01b947df..87458d4662933e 100644 --- a/src/renderers/shaders/ShaderLib/shadow_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/shadow_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` #include #include diff --git a/src/renderers/shaders/ShaderLib/sprite_frag.glsl.js b/src/renderers/shaders/ShaderLib/sprite_frag.glsl.js index b17a796eedf053..f215219855de41 100644 --- a/src/renderers/shaders/ShaderLib/sprite_frag.glsl.js +++ b/src/renderers/shaders/ShaderLib/sprite_frag.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform vec3 diffuse; uniform float opacity; diff --git a/src/renderers/shaders/ShaderLib/sprite_vert.glsl.js b/src/renderers/shaders/ShaderLib/sprite_vert.glsl.js index b460c6acccddb1..bffda7c897ebf2 100644 --- a/src/renderers/shaders/ShaderLib/sprite_vert.glsl.js +++ b/src/renderers/shaders/ShaderLib/sprite_vert.glsl.js @@ -1,4 +1,4 @@ -export default ` +export default /* glsl */` uniform float rotation; uniform vec2 center;