Permalink
Browse files

more work

  • Loading branch information...
1 parent a612971 commit a798cf747d8968339d501174710a49a45bef8cb0 @jeromeetienne committed Mar 3, 2013
@@ -39283,7 +39283,10 @@ tQuery.mixinAttributes(tQuery.SpotLight, {
shadowCameraLeft : tQuery.convert.toNumber,
shadowCameraTop : tQuery.convert.toNumber,
shadowCameraBottom : tQuery.convert.toNumber,
- shadowCameraVisible : tQuery.convert.toBoolean
+ shadowCameraVisible : tQuery.convert.toBoolean,
+
+ shadowCameraNear : tQuery.convert.toNumber,
+ shadowCameraFar : tQuery.convert.toNumber
});
@@ -39283,7 +39283,10 @@ tQuery.mixinAttributes(tQuery.SpotLight, {
shadowCameraLeft : tQuery.convert.toNumber,
shadowCameraTop : tQuery.convert.toNumber,
shadowCameraBottom : tQuery.convert.toNumber,
- shadowCameraVisible : tQuery.convert.toBoolean
+ shadowCameraVisible : tQuery.convert.toBoolean,
+
+ shadowCameraNear : tQuery.convert.toNumber,
+ shadowCameraFar : tQuery.convert.toNumber
});
View
@@ -2057,7 +2057,10 @@ tQuery.mixinAttributes(tQuery.SpotLight, {
shadowCameraLeft : tQuery.convert.toNumber,
shadowCameraTop : tQuery.convert.toNumber,
shadowCameraBottom : tQuery.convert.toNumber,
- shadowCameraVisible : tQuery.convert.toBoolean
+ shadowCameraVisible : tQuery.convert.toBoolean,
+
+ shadowCameraNear : tQuery.convert.toNumber,
+ shadowCameraFar : tQuery.convert.toNumber
});
@@ -48,7 +48,10 @@ tQuery.mixinAttributes(tQuery.SpotLight, {
shadowCameraLeft : tQuery.convert.toNumber,
shadowCameraTop : tQuery.convert.toNumber,
shadowCameraBottom : tQuery.convert.toNumber,
- shadowCameraVisible : tQuery.convert.toBoolean
+ shadowCameraVisible : tQuery.convert.toBoolean,
+
+ shadowCameraNear : tQuery.convert.toNumber,
+ shadowCameraFar : tQuery.convert.toNumber
});
@@ -73,7 +73,8 @@
// You can find more details in ["Casting Shadow"](http://learningthreejs.com/blog/2012/01/20/casting-shadows/) post.
// Those parameters can be tricky to tune. It helps if you make the shaddow
// camera visible. You can do so with ```.shadowCameraVisible(true)```.
- tQuery.createDirectionalLight().addTo(world).position(-10, 20, 30).color(0xffffff).intensity(4)
+ tQuery.createDirectionalLight().addTo(world)
+ .position(-10, 20, 30).color(0xffffff).intensity(4)
.castShadow(true).shadowDarkness(0.8)
.shadowMap(512*2,512*2)
.shadowCamera(10, -10, 20, -20, 0.1, 50);
@@ -68,8 +68,6 @@
prevRotation.copy( character3D.rotation() )
}.bind(this), 1000/5); // Important to be less than framerate - thus you dont misdetect still
- var cache = new tQuery.MicroCache();
-
// create the screen
var object3D = createScreen({
//videoUrl : 'Make your minecraft move - tQuery tips.mp4',
@@ -80,7 +78,7 @@
videoUrl : '../../assets/videos/sintel.ogv',
title : 'Sintel Trailer',
- youtubeUrl : 'http://www.youtube.com/watch?v=ac7KhViaVqc',
+ //youtubeUrl : 'http://www.youtube.com/watch?v=ac7KhViaVqc',
}).addTo(world)

0 comments on commit a798cf7

Please sign in to comment.