rapid-render 1.0.17 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensions/light.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/rapid-render.js +294 -277
- package/dist/rapid-render.umd.cjs +23 -26
- package/dist/region/atlasSpriteRegion.d.ts +0 -2
- package/dist/region/graphicRegion.d.ts +1 -0
- package/dist/region/particleRegion.d.ts +1 -1
- package/dist/region/region.d.ts +2 -0
- package/dist/region/spriteRegion.d.ts +0 -2
- package/dist/texture.d.ts +1 -0
- package/dist/webgl/glshader.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,9 +4,11 @@ import { Vec2 } from '../math';
|
|
|
4
4
|
import { RenderTexture, Texture } from '../texture';
|
|
5
5
|
import { Color } from '../color';
|
|
6
6
|
import { MatrixSaveState } from '../matrix-engine';
|
|
7
|
+
import { Region } from '../region/region';
|
|
7
8
|
export declare const MAX_LIGHTS = 8;
|
|
8
9
|
export declare class LightShader extends CustomGlShader {
|
|
9
10
|
constructor(rapid: Rapid, vs?: string, fs?: string, usedTextureUnitNum?: number, uniforms?: Record<string, UniformValue>);
|
|
11
|
+
getGLShader(region: Region, key: string, baseVS: string, baseFS: string): import('..').GLShader | null;
|
|
10
12
|
}
|
|
11
13
|
export type LightMatrix = number | MatrixSaveState;
|
|
12
14
|
export interface ILight {
|
|
@@ -16,8 +18,11 @@ export interface ILight {
|
|
|
16
18
|
metallic?: number;
|
|
17
19
|
roughness?: number;
|
|
18
20
|
color?: Color | Color[];
|
|
21
|
+
ambientColor?: Color;
|
|
19
22
|
lightHeight?: number | number[];
|
|
20
23
|
customShader?: LightShader;
|
|
24
|
+
normalScaleY?: number;
|
|
25
|
+
normalScaleX?: number;
|
|
21
26
|
}
|
|
22
27
|
export declare class Light {
|
|
23
28
|
shader: CustomGlShader;
|
package/dist/index.d.ts
CHANGED