import { TextureBase } from '@awayjs/renderer'; import { NormalBasicMethod, _Shader_NormalBasicMethod } from './NormalBasicMethod'; import { MethodBase } from './MethodBase'; /** * NormalHeightMapMethod provides a normal map method that uses a height map to calculate the normals. */ export declare class NormalHeightMapMethod extends NormalBasicMethod { private _worldXYRatio; private _worldXZRatio; static assetType: string; /** * @inheritDoc */ get assetType(): string; get worldXYRatio(): number; get worldXZRatio(): number; /** * Creates a new NormalHeightMapMethod method. * * @param heightMap The texture containing the height data. 0 means low, 1 means high. * @param worldWidth The width of the 'world'. This is used to map uv coordinates' u component to scene dimensions. * @param worldHeight The height of the 'world'. This is used to map the height map values to scene dimensions. * @param worldDepth The depth of the 'world'. This is used to map uv coordinates' v component to scene dimensions. */ constructor(heightMap: TextureBase, worldWidth: number, worldHeight: number, worldDepth: number); /** * @inheritDoc */ copyFrom(method: MethodBase): void; } import { ShaderRegisterCache, ShaderRegisterData, ShaderRegisterElement } from '@awayjs/stage'; import { ShaderBase } from '@awayjs/renderer'; /** * _Shader_NormalHeightMapMethod provides a normal map method that uses a height map to calculate the normals. */ export declare class _Shader_NormalHeightMapMethod extends _Shader_NormalBasicMethod { private _fragmentConstantsIndex; /** * Creates a new _Shader_NormalHeightMapMethod. */ init(method: NormalHeightMapMethod, shader: ShaderBase): void; /** * @inheritDoc */ _initConstants(): void; /** * @inheritDoc */ get tangentSpace(): boolean; /** * @inheritDoc */ _getFragmentCode(targetReg: ShaderRegisterElement, registerCache: ShaderRegisterCache, sharedRegisters: ShaderRegisterData): string; } //# sourceMappingURL=NormalHeightMapMethod.d.ts.map