Comparing version 2.3.2 to 2.4.0
@@ -7,2 +7,6 @@ # Changelog | ||
## [2.4.0] - 2023-05-13 | ||
### Added | ||
- Added support for fog when using `StandardMaterial`. | ||
## [2.3.2] - 2023-04-26 | ||
@@ -9,0 +13,0 @@ ### Fixed |
{ | ||
"name": "pixi3d", | ||
"version": "2.3.2", | ||
"version": "2.4.0", | ||
"description": "The 3D renderer for PixiJS. Seamless integration with 2D applications.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/pixi5/pixi3d.js", |
@@ -24,3 +24,3 @@ # Pixi3D | ||
``` | ||
npx create-pixi3d-app my-pixi3d-app | ||
npx create-pixi3d-app@latest my-pixi3d-app | ||
``` | ||
@@ -27,0 +27,0 @@ After installation is complete, type `cd my-pixi3d-app` and `npm start` to start local web server. |
@@ -27,2 +27,3 @@ export { glTFLoader } from "./loader/gltf-loader"; | ||
export { ImageBasedLighting } from "./lighting/image-based-lighting"; | ||
export { Fog } from "./lighting/fog"; | ||
export { StandardPipeline } from "./pipeline/standard-pipeline"; | ||
@@ -29,0 +30,0 @@ export { MaterialRenderPass } from "./pipeline/material-render-pass"; |
import { Renderer, IRendererPlugin } from "@pixi/core"; | ||
import { ImageBasedLighting } from "./image-based-lighting"; | ||
import { Light } from "./light"; | ||
import { Fog } from "./fog"; | ||
/** | ||
@@ -14,2 +15,3 @@ * A lighting environment represents the different lighting conditions for a | ||
lights: Light[]; | ||
fog?: Fog; | ||
/** The main lighting environment which is used by default. */ | ||
@@ -16,0 +18,0 @@ static main: LightingEnvironment; |
@@ -7,3 +7,3 @@ import { ObservablePoint, IPoint } from "@pixi/math"; | ||
*/ | ||
export declare class Point3D extends ObservablePoint { | ||
export declare class Point3D extends ObservablePoint implements IPoint3DData { | ||
private _array; | ||
@@ -38,3 +38,3 @@ /** Array containing the x, y, z values. */ | ||
clone(cb?: (this: any) => any, scope?: any): Point3D; | ||
copyFrom(p: Point3D): this; | ||
copyFrom(p: IPoint3DData): this; | ||
copyTo<T extends IPoint>(p: T): T; | ||
@@ -142,1 +142,6 @@ equals(p: Point3D): boolean; | ||
} | ||
export interface IPoint3DData { | ||
x: number; | ||
y: number; | ||
z: number; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
9316521
155
51390