12345678910111213141516171819202122232425262728293031323334353637383940 |
- import type { Scene } from "../../scene";
- import { Plane } from "../../Maths/math.plane";
- import { RenderTargetTexture } from "../../Materials/Textures/renderTargetTexture";
- /**
- * Creates a refraction texture used by refraction channel of the standard material.
- * It is like a mirror but to see through a material.
- * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/using/reflectionTexture#refractiontexture
- */
- export declare class RefractionTexture extends RenderTargetTexture {
- /**
- * Define the reflection plane we want to use. The refractionPlane is usually set to the constructed refractor.
- * It is possible to directly set the refractionPlane by directly using a Plane(a, b, c, d) where a, b and c give the plane normal vector (a, b, c) and d is a scalar displacement from the refractionPlane to the origin. However in all but the very simplest of situations it is more straight forward to set it to the refractor as stated in the doc.
- * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/using/reflectionTexture#refraction
- */
- refractionPlane: Plane;
- /**
- * Define how deep under the surface we should see.
- */
- depth: number;
- /**
- * Creates a refraction texture used by refraction channel of the standard material.
- * It is like a mirror but to see through a material.
- * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/using/reflectionTexture#refraction
- * @param name Define the texture name
- * @param size Define the size of the underlying texture
- * @param scene Define the scene the refraction belongs to
- * @param generateMipMaps Define if we need to generate mips level for the refraction
- */
- constructor(name: string, size: number, scene?: Scene, generateMipMaps?: boolean);
- /**
- * Clone the refraction texture.
- * @returns the cloned texture
- */
- clone(): RefractionTexture;
- /**
- * Serialize the texture to a JSON representation you could use in Parse later on
- * @returns the serialized JSON representation
- */
- serialize(): any;
- }
|