babylon.grassProceduralTexture.d.ts 1005 B

123456789101112131415161718192021222324
  1. declare module BABYLON {
  2. class GrassProceduralTexture extends ProceduralTexture {
  3. private _grassColors;
  4. private _groundColor;
  5. constructor(name: string, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean);
  6. updateShaderUniforms(): void;
  7. grassColors: Color3[];
  8. groundColor: Color3;
  9. /**
  10. * Serializes this grass procedural texture
  11. * @returns a serialized grass procedural texture object
  12. */
  13. serialize(): any;
  14. /**
  15. * Creates a Grass Procedural Texture from parsed grass procedural texture data
  16. * @param parsedTexture defines parsed texture data
  17. * @param scene defines the current scene
  18. * @param rootUrl defines the root URL containing grass procedural texture information
  19. * @returns a parsed Grass Procedural Texture
  20. */
  21. static Parse(parsedTexture: any, scene: Scene, rootUrl: string): GrassProceduralTexture;
  22. }
  23. }