Skip to content

Commit 9db8aa4

Browse files
committed
chore(postprocessing): use template highlight injection
1 parent 0131658 commit 9db8aa4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libs/postprocessing/src/lib/effects/ascii.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { mergeInputs } from 'ngxtension/inject-inputs';
44
import { Effect } from 'postprocessing';
55
import { CanvasTexture, Color, NearestFilter, RepeatWrapping, Texture, Uniform } from 'three';
66

7-
const fragment = `
7+
const fragment = /* language=glsl glsl */ `
88
uniform sampler2D uCharacters;
99
uniform float uCharactersCount;
1010
uniform float uCellSize;

libs/postprocessing/src/lib/effects/tilt-shift-2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Uniform } from 'three';
55
import { NgtpEffect, NgtpEffectBlendMode, NgtpEffectHostDirective, provideDefaultEffectOptions } from '../effect';
66

77
const TiltShiftShader = {
8-
fragmentShader: `
8+
fragmentShader: /* language=glsl glsl */ `
99
1010
// original shader by Evan Wallace
1111

libs/postprocessing/src/lib/effects/water.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Uniform } from 'three';
55
import { NgtpEffect, NgtpEffectBlendMode, NgtpEffectHostDirective, provideDefaultEffectOptions } from '../effect';
66

77
const WaterShader = {
8-
fragmentShader: `
8+
fragmentShader: /* language=glsl glsl */ `
99
uniform float factor;
1010
void mainImage(const in vec4 inputColor, const in vec2 uv, out vec4 outputColor) {
1111
vec2 vUv = uv;

0 commit comments

Comments
 (0)