-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Examples: Add UltraHDRLoader (#1105)
* Examples: Add UltraHDRLoader * Update three.js * Update * Add examples * Update patch and delete examples
- Loading branch information
1 parent
ad8996b
commit 263c6a6
Showing
5 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule three.js
updated
9 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { DataTexture, Loader, LoadingManager, RGBAFormat, TextureDataType } from "three"; | ||
|
||
interface UltraHDRLoaderTextureData { | ||
width: number; | ||
height: number; | ||
hdrBuffer: Uint16Array | Float32Array; | ||
format: typeof RGBAFormat; | ||
type: TextureDataType; | ||
} | ||
|
||
declare class UltraHDRLoader extends Loader<DataTexture> { | ||
type: TextureDataType; | ||
|
||
constructor(manager?: LoadingManager); | ||
|
||
setDataType(value: TextureDataType): this; | ||
|
||
parse(buffer: ArrayBuffer, onLoad: (texData: UltraHDRLoaderTextureData) => void): void; | ||
} | ||
|
||
export { UltraHDRLoader }; |