Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples: Clean up. #18731

Merged
merged 1 commit into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/js/utils/ShadowMapViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
* @author arya-s / https://github.com/arya-s
*
* This is a helper for visualising a given light's shadow map.
* It works for shadow casting lights: THREE.DirectionalLight and THREE.SpotLight.
* It works for shadow casting lights: DirectionalLight and SpotLight.
* It renders out the shadow map and displays it on a HUD.
*
* Example usage:
* 1) Include <script src='examples/js/utils/ShadowMapViewer.js'><script> in your html file
* 1) Import ShadowMapViewer into your app.
*
* 2) Create a shadow casting light and name it optionally:
* var light = new THREE.DirectionalLight( 0xffffff, 1 );
* var light = new DirectionalLight( 0xffffff, 1 );
* light.castShadow = true;
* light.name = 'Sun';
*
* 3) Create a shadow map viewer for that light and set its size and position optionally:
* var shadowMapViewer = new THREE.ShadowMapViewer( light );
* var shadowMapViewer = new ShadowMapViewer( light );
* shadowMapViewer.size.set( 128, 128 ); //width, height default: 256, 256
* shadowMapViewer.position.set( 10, 10 ); //x, y in pixel default: 0, 0 (top left corner)
*
Expand Down
6 changes: 3 additions & 3 deletions examples/jsm/utils/ShadowMapViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* @author arya-s / https://github.com/arya-s
*
* This is a helper for visualising a given light's shadow map.
* It works for shadow casting lights: THREE.DirectionalLight and THREE.SpotLight.
* It works for shadow casting lights: DirectionalLight and SpotLight.
* It renders out the shadow map and displays it on a HUD.
*
* Example usage:
* 1) Include <script src='examples/js/utils/ShadowMapViewer.js'><script> in your html file
* 1) Import ShadowMapViewer into your app.
*
* 2) Create a shadow casting light and name it optionally:
* var light = new THREE.DirectionalLight( 0xffffff, 1 );
* var light = new DirectionalLight( 0xffffff, 1 );
* light.castShadow = true;
* light.name = 'Sun';
*
Expand Down
2 changes: 1 addition & 1 deletion utils/modularize.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ var files = [
{ path: 'utils/BufferGeometryUtils.js', dependencies: [], ignoreList: [] },
{ path: 'utils/GeometryUtils.js', dependencies: [], ignoreList: [] },
{ path: 'utils/SceneUtils.js', dependencies: [], ignoreList: [] },
{ path: 'utils/ShadowMapViewer.js', dependencies: [ { name: 'UnpackDepthRGBAShader', path: 'shaders/UnpackDepthRGBAShader.js' } ], ignoreList: [ 'DirectionalLight', 'SpotLight' ] },
{ path: 'utils/ShadowMapViewer.js', dependencies: [ { name: 'UnpackDepthRGBAShader', path: 'shaders/UnpackDepthRGBAShader.js' } ], ignoreList: [] },
{ path: 'utils/SkeletonUtils.js', dependencies: [], ignoreList: [] },
{ path: 'utils/TypedArrayUtils.js', dependencies: [], ignoreList: [] },
{ path: 'utils/UVsDebug.js', dependencies: [], ignoreList: [ 'SphereBufferGeometry' ] },
Expand Down