Comparing version 0.0.25 to 0.0.26
@@ -327,3 +327,3 @@ 'use strict'; | ||
return composer; | ||
}, [camera, gl, scene, smaa]); | ||
}, [camera, gl, scene, smaa, ao, bloom, edgeDetection, bloomOpacity]); | ||
React.useEffect(function () { | ||
@@ -330,0 +330,0 @@ return void composer.setSize(size.width, size.height); |
@@ -292,3 +292,3 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
return composer; | ||
}, [camera, gl, scene, smaa]); | ||
}, [camera, gl, scene, smaa, ao, bloom, edgeDetection, bloomOpacity]); | ||
useEffect(() => void composer.setSize(size.width, size.height), [composer, size]); | ||
@@ -295,0 +295,0 @@ return useFrame((_, delta) => composer.render(delta), 1); |
declare type Props = { | ||
bloom: boolean | BloomProps; | ||
ao: boolean | AOProps; | ||
smaa: boolean; | ||
edgeDetection: number; | ||
bloomOpacity: number; | ||
bloom?: boolean | BloomProps; | ||
ao?: boolean | AOProps; | ||
smaa?: boolean; | ||
edgeDetection?: number; | ||
bloomOpacity?: number; | ||
effects?: (effects: any[]) => any[]; | ||
@@ -8,0 +8,0 @@ }; |
{ | ||
"name": "drei", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "useful add-ons for react-three-fiber", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -145,3 +145,3 @@ [![Build Status](https://travis-ci.org/react-spring/drei.svg?branch=master)](https://travis-ci.org/react-spring/drei) [![npm version](https://badge.fury.io/js/drei.svg)](https://badge.fury.io/js/drei) ![npm](https://img.shields.io/npm/dt/drei.svg) | ||
{...divProps} // All HTMLDivElement props are valid | ||
> | ||
> | ||
<h1>hello</h1> | ||
@@ -148,0 +148,0 @@ <p>world</p> |
@@ -19,7 +19,7 @@ import { HalfFloatType } from 'three' | ||
type Props = { | ||
bloom: boolean | BloomProps | ||
ao: boolean | AOProps | ||
smaa: boolean | ||
edgeDetection: number | ||
bloomOpacity: number | ||
bloom?: boolean | BloomProps | ||
ao?: boolean | AOProps | ||
smaa?: boolean | ||
edgeDetection?: number | ||
bloomOpacity?: number | ||
effects?: (effects: any[]) => any[] | ||
@@ -108,3 +108,3 @@ } | ||
return composer | ||
}, [camera, gl, scene, smaa]) | ||
}, [camera, gl, scene, smaa, ao, bloom, edgeDetection, bloomOpacity]) | ||
@@ -111,0 +111,0 @@ useEffect(() => void composer.setSize(size.width, size.height), [composer, size]) |
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
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
84383