File tree Expand file tree Collapse file tree
content/Backgrounds/Grainient
tailwind/Backgrounds/Grainient
ts-default/Backgrounds/Grainient
ts-tailwind/Backgrounds/Grainient Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ const Grainient = ({
186186 const res = program . uniforms . iResolution . value ;
187187 res [ 0 ] = gl . drawingBufferWidth ;
188188 res [ 1 ] = gl . drawingBufferHeight ;
189+ renderer . render ( { scene : mesh } ) ;
189190 } ;
190191
191192 const ro = new ResizeObserver ( setSize ) ;
@@ -238,4 +239,4 @@ const Grainient = ({
238239 return < div ref = { containerRef } className = { `grainient-container ${ className } ` . trim ( ) } /> ;
239240} ;
240241
241- export default Grainient ;
242+ export default Grainient ;
Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ const Grainient = ({
185185 const res = program . uniforms . iResolution . value ;
186186 res [ 0 ] = gl . drawingBufferWidth ;
187187 res [ 1 ] = gl . drawingBufferHeight ;
188+ renderer . render ( { scene : mesh } ) ;
188189 } ;
189190
190191 const ro = new ResizeObserver ( setSize ) ;
Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ const Grainient: React.FC<GrainientProps> = ({
212212 const res = ( program . uniforms . iResolution as { value : Float32Array } ) . value ;
213213 res [ 0 ] = gl . drawingBufferWidth ;
214214 res [ 1 ] = gl . drawingBufferHeight ;
215+ renderer . render ( { scene : mesh } ) ;
215216 } ;
216217
217218 const ro = new ResizeObserver ( setSize ) ;
Original file line number Diff line number Diff line change @@ -211,6 +211,7 @@ const Grainient: React.FC<GrainientProps> = ({
211211 const res = ( program . uniforms . iResolution as { value : Float32Array } ) . value ;
212212 res [ 0 ] = gl . drawingBufferWidth ;
213213 res [ 1 ] = gl . drawingBufferHeight ;
214+ renderer . render ( { scene : mesh } ) ;
214215 } ;
215216
216217 const ro = new ResizeObserver ( setSize ) ;
You can’t perform that action at this time.
0 commit comments