babylon.shaderMaterial.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. declare module BABYLON {
  2. class ShaderMaterial extends Material {
  3. private _shaderPath;
  4. private _options;
  5. private _textures;
  6. private _floats;
  7. private _floatsArrays;
  8. private _colors3;
  9. private _colors4;
  10. private _vectors2;
  11. private _vectors3;
  12. private _matrices;
  13. private _cachedWorldViewMatrix;
  14. private _renderId;
  15. constructor(name: string, scene: Scene, shaderPath: any, options: any);
  16. public needAlphaBlending(): boolean;
  17. public needAlphaTesting(): boolean;
  18. private _checkUniform(uniformName);
  19. public setTexture(name: string, texture: Texture): ShaderMaterial;
  20. public setFloat(name: string, value: number): ShaderMaterial;
  21. public setFloats(name: string, value: number[]): ShaderMaterial;
  22. public setColor3(name: string, value: Color3): ShaderMaterial;
  23. public setColor4(name: string, value: Color4): ShaderMaterial;
  24. public setVector2(name: string, value: Vector2): ShaderMaterial;
  25. public setVector3(name: string, value: Vector3): ShaderMaterial;
  26. public setMatrix(name: string, value: Matrix): ShaderMaterial;
  27. public isReady(): boolean;
  28. public bindOnlyWorldMatrix(world: Matrix): void;
  29. public bind(world: Matrix): void;
  30. public dispose(forceDisposeEffect?: boolean): void;
  31. }
  32. }