@@ -5,7 +5,7 @@ import { injectBeforeRender, injectNgtRef, NgtArgs } from 'angular-three';
55import distortShader from 'angular-three-soba/assets/distort.vert.glsl' ;
66import { NgtsMeshDistortMaterial } from 'angular-three-soba/materials' ;
77import { provideNgtsMeshDistortMaterialShader , type MeshDistortMaterial } from 'angular-three-soba/shaders' ;
8- import { makeDecorators , makeStoryFunction , makeStoryObject , number } from '../setup-canvas' ;
8+ import { makeCanvasOptions , makeDecorators , makeStoryFunction , makeStoryObject , number } from '../setup-canvas' ;
99
1010@Component ( {
1111 standalone : true ,
@@ -52,12 +52,15 @@ export default {
5252 decorators : makeDecorators ( [ provideNgtsMeshDistortMaterialShader ( distortShader ) ] ) ,
5353} ;
5454
55+ const canvasOptions = makeCanvasOptions ( { useLegacyLights : true } ) ;
56+
5557export const Default = makeStoryObject ( DefaultMeshDistortMaterialStory , {
58+ canvasOptions,
5659 argsOptions : {
5760 speed : number ( 1 , { range : true , max : 10 , step : 0.1 } ) ,
5861 distort : number ( 0.6 , { range : true , max : 1 , step : 0.1 } ) ,
5962 radius : number ( 1 , { range : true , max : 1 , step : 0.1 } ) ,
6063 } ,
6164} ) ;
6265
63- export const Ref = makeStoryFunction ( RefMeshDistortMaterialStory ) ;
66+ export const Ref = makeStoryFunction ( RefMeshDistortMaterialStory , canvasOptions ) ;
0 commit comments