Add motion blur and better interpolation when OES_texture_float_linear is not available
This commit is contained in:
parent
2889fd54db
commit
7803bbeaee
7 changed files with 50 additions and 8 deletions
|
|
@ -12,6 +12,7 @@ export const defaultRuntimeSettings: RuntimeSettings = {
|
|||
distanceRenderScale: 0.5,
|
||||
lightsRenderScale: 1,
|
||||
colorPalette: [],
|
||||
motionBlur: 0.3,
|
||||
ambientLight: vec3.fromValues(0.25, 0.15, 0.25),
|
||||
textures: {},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -65,6 +65,14 @@ export interface RuntimeSettings {
|
|||
*/
|
||||
lightsRenderScale: number;
|
||||
|
||||
/**
|
||||
* Set the extent of the motion blur.
|
||||
*
|
||||
* The values must be between 0 and 1. Where 0 means no motion blur,
|
||||
* and values just below 1 mean an extreme amount of motion blur.
|
||||
*/
|
||||
motionBlur: number;
|
||||
|
||||
/**
|
||||
* It is possible to use your own textures in your SDF definitions.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue