Skip to content

Commit

Permalink
requirejsification of plugins/fog
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeetienne committed Sep 7, 2012
1 parent b973b74 commit 8c26e19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/minecraft/examples/game.html
@@ -1,10 +1,6 @@
<!doctype html><title>Minimal tQuery Page</title>
<script src="../../../build/tquery-bundle-require.js"></script>

<script src='../../checkerboard/tquery.checkerboard.js'></script>

<script src='../../grassground/tquery.grassground.js'></script>

<script src="../tquery.midikeytween.js"></script>

<script src="../tquery.minecraftchar.js"></script>
Expand All @@ -25,9 +21,13 @@
<script src='../../light/tquery.light.shadow.js'></script>

<body><script>
require(['tquery.pproc', 'tquery.skymap', 'tquery.keyboard', 'tquery.lensflare'], function(){
require(['tquery.pproc', 'tquery.skymap', 'tquery.keyboard', 'tquery.lensflare'
, 'tquery.grassground'], function(){
var world = tQuery.createWorld().boilerplate().start();

// add the fog
world.addFogExp2({density: 0.05});

// add post processing
world.addEffectComposer()
.sepia()
Expand Down Expand Up @@ -82,7 +82,7 @@
textureRepeatY : 20,
}).addTo(world)
.receiveShadow(true)
.scale(40);
.scale(80);
ground.get(0).material.map.anisotropy = 4
}

Expand Down
1 change: 1 addition & 0 deletions plugins/requirejs/build/all.confrequire.js
Expand Up @@ -12,6 +12,7 @@ requirejs.config({
"tquery.datguituner": "plugins/datguituner/tquery.datguituner",
"tquery.deviceorientation": "plugins/deviceorientation/tquery.deviceorientation",
"tquery.domevent": "plugins/domevent/tquery.domevent",
"tquery.fog": "plugins/fog/tquery.world.createfog",
"tquery.grassground": "plugins/requirejs/confrequire/grassground.initrequire",
"tquery.keyboard": "plugins/keyboard/tquery.keyboard",
"tquery.lavamaterial": "plugins/requirejs/confrequire/lavamaterial.initrequire",
Expand Down

0 comments on commit 8c26e19

Please sign in to comment.