engine.textureSampler.d.ts 477 B

123456789101112
  1. import type { Nullable } from "../../types";
  2. import type { TextureSampler } from "../../Materials/Textures/textureSampler";
  3. declare module "../../Engines/thinEngine" {
  4. interface ThinEngine {
  5. /**
  6. * Sets a texture sampler to the according uniform.
  7. * @param name The name of the uniform in the effect
  8. * @param sampler The sampler to apply
  9. */
  10. setTextureSampler(name: string, sampler: Nullable<TextureSampler>): void;
  11. }
  12. }