Favivon - Correção

This commit is contained in:
2026-05-30 19:59:39 -03:00
parent 76ddaa815d
commit d7dfd221f0
32859 changed files with 5459654 additions and 404 deletions
+36
View File
@@ -0,0 +1,36 @@
import { IUniform, MeshStandardMaterial, MeshStandardMaterialParameters } from 'three';
import { ThreeElements } from '@react-three/fiber';
import { ForwardRefComponent } from '../helpers/ts-utils';
interface Uniform<T> {
value: T;
}
declare class WobbleMaterialImpl extends MeshStandardMaterial {
_time: Uniform<number>;
_factor: Uniform<number>;
constructor(parameters?: MeshStandardMaterialParameters);
onBeforeCompile(shader: {
vertexShader: string;
uniforms: {
[uniform: string]: IUniform;
};
}): void;
get time(): number;
set time(v: number);
get factor(): number;
set factor(v: number);
}
declare module '@react-three/fiber' {
interface ThreeElements {
wobbleMaterialImpl: ThreeElements['meshStandardMaterial'] & {
time?: number;
factor?: number;
speed?: number;
};
}
}
export type WobbleMaterialProps = Omit<ThreeElements['meshStandardMaterial'], 'ref'> & {
speed?: number;
factor?: number;
};
export declare const MeshWobbleMaterial: ForwardRefComponent<WobbleMaterialProps, WobbleMaterialImpl>;
export {};